Get all payment requests
View as MarkdownRetrieve all the payment requests for a specific store using the store ID.
Authorization
PAT commerce.payment-request:readPersonal Access Token (PAT). Include as Authorization: Bearer $GODADDY_PAT. Required scopes: commerce.payment-request:write, commerce.payment-request:read.
In: header
Scope: commerce.payment-request:read
Path Parameters
Unique identifier for the store
uuidQuery Parameters
Number of items per page
1 <= value <= 10010Token for retrieving the next page of results. Pass the top-level pageToken value from the
previous response. When the response has no pageToken, there are no more results.
Payment request filter updatedAt start date. Defaults to 1 day ago if not specified.
^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])[T,t]([0-1][0-9]|2[0-3]):[0-5][0-9]:([0-5][0-9]|60)([.][0-9]+)?([Zz]|[+-][0-9]{2}:[0-9]{2})$20 <= length <= 64Payment request filter updatedAt end date
^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])[T,t]([0-1][0-9]|2[0-3]):[0-5][0-9]:([0-5][0-9]|60)([.][0-9]+)?([Zz]|[+-][0-9]{2}:[0-9]{2})$20 <= length <= 64Filter by payment request status
Value in
- "RECEIVED"
- "QUEUED"
- "IN_PROGRESS"
- "FAILED"
- "COMPLETED"
Filter by device identifier
Filter by payment request type
Payment request sort field
"updatedAt"Value in
- "updatedAt"
Payment request sort order
"DESC"Value in
- "ASC"
- "DESC"
Header Parameters
Unique identifier for this call, used for duplicate detection and tracing. A repeated value for the
same store within 30 minutes returns 409 DUPLICATE_REQUEST. It doesn't make create safe to
retry: send a new value on every call, and reuse paymentRequestId to retry the same charge.
uuidResponse Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/stores/497f6eca-6276-4993-bfeb-53cbbbba6f08/payment-requests?updatedAtAfter=2024-02-23T16%3A37%3A23Z&updatedAtBefore=2024-04-23T16%3A37%3A23Z&status=IN_PROGRESS&deviceId=urn%3Atid%3A2cf6f478-e7c6-3378-8cda-74ee60715e13&type=SALE"{ "items": [ { "paymentRequestId": "a1b2c3d4-e5f6-4789-9abc-def123456789", "type": "SALE", "transactionRefNum": "a1b2c3d4-e5f6-4789-9abc-def123456789", "originalTransactionId": "b2c3d4e5-f6a7-8901-bcde-f123456789ab", "storeId": "12345678-90ab-cdef-1234-567890abcdef", "deviceId": "urn:tid:2cf6f478-e7c6-3378-8cda-74ee60715e13", "amount": { "amount": 0, "currency": "str", "amountType": "SIMPLE" }, "paymentInstructions": { "multiTender": true, "skipReceiptScreen": true, "skipSignatureScreen": true, "disableTip": true }, "createdAt": "2022-07-21T17:32:28Z", "updatedAt": "2022-07-21T17:32:28Z", "status": "RECEIVED", "notes": "Table 5 - Split payment with card", "references": [ { "type": "CUSTOM", "value": "ORD-2024-001", "additionalLabel": "POS Order" } ], "transactionIds": [ "11111111-2222-3333-4444-555555555555" ], "links": [ { "href": "http://example.com", "rel": "string", "title": "string", "targetMediaType": "string", "targetSchema": null, "method": "string", "submissionMediaType": "application/json", "submissionSchema": null } ], "activities": [], "callbackConfig": { "url": "https://client.example.com/webhooks/payment-requests", "authentication": { "type": "hmac", "value": "your-shared-secret-key" }, "payloadConfig": { "includeFields": [ "paymentRequestId", "type", "amount", "storeId", "transactions" ], "legacyMode": false } } } ], "currentPage": 0, "pageSize": 0, "pageToken": "string", "links": [ { "href": "http://example.com", "rel": "string", "title": "string", "targetMediaType": "string", "targetSchema": null, "method": "string", "submissionMediaType": "application/json", "submissionSchema": null } ]}Last updated on
How is this guide?