Sale payments
This method returns the payments associated with a sale. It accepts either the ExpertHub sale identifier or the partner’s own sale identifier.
Access method
Section titled “Access method”GET /SalePayments
Parameters are sent in the query string.
Request data structure
Section titled “Request data structure”SaleId: (string)Optional. Sale identifier in ExpertHub. If not specified, usePartnerSaleId.PartnerSaleId: (string)Optional. Identifier of the sale in the partner’s system. If not specified, useSaleId.
Request example
Section titled “Request example”GET /api/SalePayments?PartnerSaleId=965875680289Accept: application/jsonAuthorization: ApiKey YOUR_API_KEYResponse data structure
Section titled “Response data structure”-
Payments: (array). Payments associated with the sale.PaymentCommerceIdentifier: (string). Identifier of the business that received the payment.Amount: (decimal). Payment amount.AuthorizationCode: (string). Authorization code issued by the entity that processed the payment.OperationDateTime: (dateTime). Date and time of the operation.
-
Success: (boolean). Whether the request was processed successfully. -
Timestamp: (dateTime). The moment the request was processed. ISO 8601 format (yyyy-MM-ddThh:mm:ss.fffffff). -
ErrorMessage: (string). The reason, if the call failed. -
ErrorCodes: (arrayofinteger). Codes identifying the error. See error codes. -
ErrorEntityBreakDown: (array). On failure, the entities involved, each with itsId,NameandAccessDate.
Response example
Section titled “Response example”{ "Payments": [ { "PaymentCommerceIdentifier": "5194660864094625940", "Amount": 60.50, "AuthorizationCode": "7BHJ989343498", "OperationDateTime": "2026-03-14T10:22:50.5875456" } ], "Success": true, "Timestamp": "2026-03-18T17:02:27.8165916"}If the identifier does not match any sale, the response comes back with Success: false:
{ "Success": false, "Timestamp": "2026-03-18T17:02:27.8165916"}