PayOrder()

Pays for an order using one or more approved payments or settle an order with a total of 0. The total of the payment IDs listed in the request must be equal to the order total. Orders with a total amount of 0 that can be marked as paid by specifying an empty array of payment IDs in the request.

Parameters

Order_ID

SQL_VARCHAR(2048)

The ID of the order being paid.

Body_File

SQL_LONGVARCHAR(100000)

The path to the input JSON file which provides the request body.

Returns

If the procedure fails, it throws an exception.

Otherwise, the procedure returns a single-row table with the following column:

Content

SQL_LONGVARCHAR(2147483647)

The response in JSON format.