GoDaddy

Get all payment requests

View as Markdown

Retrieve all the payment requests for a specific store using the store ID.

GET
/stores/{storeId}/payment-requests

Authorization

PAT commerce.payment-request:read
AuthorizationBearer <token>

Personal 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

storeId*string

Unique identifier for the store

Formatuuid

Query Parameters

pageSize?integer

Number of items per page

Range1 <= value <= 100
Default10
pageToken?string

Token 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.

updatedAtAfter?string

Payment request filter updatedAt start date. Defaults to 1 day ago if not specified.

Match^[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})$
Length20 <= length <= 64
updatedAtBefore?string

Payment request filter updatedAt end date

Match^[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})$
Length20 <= length <= 64
status?Payment Request Status

Filter by payment request status

Value in

  • "RECEIVED"
  • "QUEUED"
  • "IN_PROGRESS"
  • "FAILED"
  • "COMPLETED"
deviceId?string

Filter by device identifier

type?string

Filter by payment request type

sortBy?"updatedAt"

Payment request sort field

Default"updatedAt"

Value in

  • "updatedAt"
sortOrder?string

Payment request sort order

Default"DESC"

Value in

  • "ASC"
  • "DESC"

Header Parameters

X-Request-Id?string

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.

Formatuuid

Response 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?