Invoice Uploads

Get invoice URL for payment request

get
chevron-right
lockRequired scopes
This endpoint requires the following scopes:
  • : Allows creating a new payment request.
Authorizations
OAuth2authorizationCodeRequired
Authorization URL: Token URL:
Path parameters
idstring · uuidRequiredPattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
Responses
chevron-right
200

Default Response

application/json
urlstring · uriRequired
expiresInSecondsnumberRequired
filenamestringRequired
mimeTypestringRequired
get
/api/v1/{id}/invoice/url

Attach invoice to existing payment request

post
chevron-right
lockRequired scopes
This endpoint requires the following scopes:
  • : Allows creating a new payment request.
Authorizations
OAuth2authorizationCodeRequired
Authorization URL: Token URL:
Path parameters
idstring · uuidRequiredPattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
uploadIdstring · uuidRequiredPattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
Responses
chevron-right
200

Default Response

application/json
messagestringRequired
post
/api/v1/{id}/invoice/attach/{uploadId}

Generate presigned URL for file upload

post
chevron-right
lockRequired scopes
This endpoint requires the following scopes:
  • : Allows creating a new payment request.
Authorizations
OAuth2authorizationCodeRequired
Authorization URL: Token URL:
Body
filenamestring · min: 1 · max: 255Required
mimeTypestring · min: 1 · max: 100Required
sizenumber · max: 104857600Required
Responses
chevron-right
200

Default Response

application/json
uploadIdstring · uuidRequiredPattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
methodstring · enumRequiredPossible values:
urlstring · uriRequired
expiresInSecondsnumberRequired
maxSizenumberRequired
allowedTypesstring[]Required
s3KeystringRequired
post
/api/v1/invoice-uploads/presign

Confirm upload completion

post
chevron-right
lockRequired scopes
This endpoint requires the following scopes:
  • : Allows creating a new payment request.
Authorizations
OAuth2authorizationCodeRequired
Authorization URL: Token URL:
Path parameters
uploadIdstring · uuidRequiredPattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
Body
sha256string · min: 64 · max: 64Required
Responses
chevron-right
200

Default Response

application/json
messagestringRequired
post
/api/v1/invoice-uploads/{uploadId}/confirm

Generate preview URL for uploaded file

get
chevron-right
lockRequired scopes
This endpoint requires the following scopes:
  • : Allows creating a new payment request.
Authorizations
OAuth2authorizationCodeRequired
Authorization URL: Token URL:
Path parameters
uploadIdstring · uuidRequiredPattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
Responses
chevron-right
200

Default Response

application/json
urlstring · uriRequired
expiresInSecondsnumberRequired
filenamestringRequired
mimeTypestringRequired
get
/api/v1/invoice-uploads/{uploadId}/preview-url

Attach invoice to payment request

post
chevron-right
lockRequired scopes
This endpoint requires the following scopes:
  • : Allows creating a new payment request.
Authorizations
OAuth2authorizationCodeRequired
Authorization URL: Token URL:
Path parameters
uploadIdstring · uuidRequiredPattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
paymentRequestIdstring · uuidRequiredPattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
Responses
chevron-right
200

Default Response

application/json
messagestringRequired
post
/api/v1/invoice-uploads/{uploadId}/attach/{paymentRequestId}

Delete temporary upload

delete
chevron-right
lockRequired scopes
This endpoint requires the following scopes:
  • : Allows creating a new payment request.
Authorizations
OAuth2authorizationCodeRequired
Authorization URL: Token URL:
Path parameters
uploadIdstring · uuidRequiredPattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
Responses
delete
/api/v1/invoice-uploads/{uploadId}

No content

Last updated