Get Payment Information
The information about a payment can be retrieved with the Get Payment API.
The .json address above can be used to access the schema within Postman. An example use of the Payment API follows below, or view the schema or the sample Postman Collection.
The Get Payment API call requires only one additional piece of data: the Payment ID that was generated when the payment was initiated with Add Order Item or another API action. The ID can be retrieved from either the response of these actions or by looking up the order that the payment belongs to. This could be done with a Get Order call or a Search Payment call with an Order ID as the search parameter.
Otherwise, it is a standard GET call as defined with the above table. In this example, the payment included these particular properties:
- PayPal payment type (ID 09090909) on Order 11111111
- $5.00 for Manufacturer 2000
This guide will demonstrate how to put together each section of the request to get this information.
The elements of a payment are simply the relevant IDs, amount charged, and payment method information. There are no other sections of data that are returned, so the response is fairly simple.
The Full Request
Using the URL format as outlined above, the entire call is simple to put together. This will return all of the information for the payment with the above example ID.
The Full Response
This is the full response returned by the API.