Antom, leading provider of tailored payment solutionsAntom, leading provider of tailored payment solutions

uploadInvoiceShippingFile

POST /v1/payments/uploadInvoiceShippingFile

Use this API to upload invoice or logistics AWB (Air Waybill) files. This API is applicable only when the payment method is UPI​, Net Banking, or Indian cards.

Structure

A message consists of a header and body. The following sections are focused on the body structure. For the header structure, see: 

Note: Set the data type of each field (except array) as String. This means that you must use double quotation marks (" ") to enclose the field value. Examples:

  • If the data type of a field is Integer and its value is ​20​, set it as "​20​".
  • If the data type of a field is Boolean and its value is ​true​, set it as "​true​".

Request parameters

paymentRequestId String  REQUIRED

The unique ID assigned by a merchant to identify a payment request. 

More information:

  • Maximum length: 64 characters

fileId String  REQUIRED

The unique ID to identify the invoice or logistics waybill file.

More information:

  • Maximum length: 20 characters

uploadFile String  REQUIRED

Upload materials in the format of Base64 encoded strings. Supported file formats include:

  • PDF (.pdf)
  • Document (.doc or .docx)
  • Image (.jpg or .jpeg)

More information:

  • Maximum length: 1000000 characters

fileType String  REQUIRED

The type of uploaded file material. The valid values include:

  • Invoice​: Indicates that the uploaded file material is an invoice.
  • AWB​: Indicates that the uploaded file material is a logistics waybill.

More information:

  • Maximum length: 10 characters

fileName String  REQUIRED

The name of the uploaded file.

More information:

  • Maximum length: 64 characters

Response parameters

result Object  REQUIRED

The result of the API call.

Show child parameters
API Explorer
Sample CodesRun in Sandbox

Request

URL
Method
POST
Request Body

Response

Response Body

Result/Error codes

CodeValueMessageFurther action
SUCCESSSSuccess.

The interface is called successfully.

PROCESS_FAILFA general business failure occurred.

Do not retry. Human intervention is usually needed. It is recommended that you contact Antom Technical Support to troubleshoot the issue. 

PARAM_ILLEGALFIllegal parameters. For example, non-numeric input, invalid date.

Check and verify whether the required request fields (including the header fields and body fields) of the current API are correctly passed and valid. 

UNKNOWN_EXCEPTIONUAPI failed due to unknown reason.

Call the interface again to resolve the issue. If not resolved, contact Antom Technical Support.