Orders API: Get Pending Orders
Request
GET https://api.net32.com/orders/
The Orders API returns your new orders, that is, your orders that are pending and not viewed. It will return up to 100 orders at a time. Once an order is returned, the system marks the order as viewed so that it is not returned again in your next call.
If you use your production key, this endpoint will hit production.
If you use your testing key, you will get mocked/test responses.
Pre-Authorization API: Pre-Authorize Order
Request
GET https://api.net32.com/pre-auth/{orderId}
The Pre-Authorization request will confirm payment authorization approval of the order total in advance of the order being shipped.
If you use your production key, this endpoint will hit production.
If you use your testing key, you can use the testing order numbers documented in the instructions to get mocked/test responses.
The following order numbers used with your test key will return mocked responses:
- 10002000
- 10002001
- 10004020
- 10004021
- 10004060
- 10004061
- 10004062
- 10004040
Orders API: Ship Order Line Items
Request
POST https://api.net32.com/orders/{orderId}/charges/
This endpoint ships and charges the specific line items and quantities you specify. The process will run asynchronously to tax and charge the customer's credit card for the line items you ship. This API call will return a charge request id that you may use to check success.
If you use your production key, this endpoint will hit production.
If you use your testing key, you can get mocked/test responses for our test order numbers.
The following order numbers used with your test key will return mocked responses:
- 19281414
- 19281458
- 19281471
- 10004020
- 10004021
- 19281480
Orders API: Get Charge Request Status
Request
GET https://api.net32.com/orders/{orderId}/charges/{chargeRequetId}
This endpoint confirms whether or not your charge was successful and returns a detailed breakdown of the charge distribution with your payout amount.
If you use your production key, this endpoint will hit production.
If you use your testing key, you can get mocked/test responses for our test order numbers.
The following order numbers used with your test key will return mocked responses:
- orderId 19281414, chargeRequestId 3
- orderId 19281458, chargeRequestId 4
- orderId 19281471, chargeRequestId 5
- orderId 10004020, chargeRequestId 6
- orderId 10004021, chargeRequestId 7
Comments
Article is closed for comments.