# Create a new payment request (Async) (https://developer.godaddy.com/en/docs/references/rest/payments/create-payment-request)

---
title: Create a new payment request (Async)
description: Create a new payment request for the specified store.
full: true
pageId: 862ad9fe-0762-4c60-849d-37f726767384
---

Full description

> Create a new payment request for the specified store. This is an **asynchronous operation**.   **Async Processing:**  - Returns `202 Accepted` with immediate `paymentRequestId` for tracking  - Processing happens in the background with status updates via callbacks  - Use callbacks (if configured) or polling GET endpoint for completion status  - A new payment request returns with status `QUEUED`. A retry with an existing `paymentRequestId` returns that request's current status  - A request stays `QUEUED` until the terminal responds. It doesn't time out, and no operation cancels it   **Idempotency:**  - A repeated `X-Request-Id` for the same store within 30 minutes returns `409 DUPLICATE_REQUEST`, not the existing payment request  - To retry safely, send your own `paymentRequestId` with a new `X-Request-Id`. When a payment request with that ID already exists in the store, the API returns it instead of creating a new one. This works for 90 days after you create the request  - The retry body isn't compared with the original, so use a new `paymentRequestId` for each new charge   **Required Properties:**  - `type` - Payment request type (`SALE` or `REFUND`)  - `amount` - Payment request amount, except for a `REFUND` with `originalTransactionId`   **Optional Properties:**  - `paymentRequestId` - Your own UUID for the payment request, which makes create safe to retry  - `originalTransactionId` - Transaction to refund, `REFUND` only  - `deviceId` - Device identifier for this payment request  - `paymentInstructions` - Payment instructions  - `notes` - Additional notes about the payment request  - `references` - External system references  - `callbackConfig` - Configuration for async status notifications   **Error codes:** A `400` validation error carries `MALFORMED_REQUEST`, `VALIDATION_ERROR`, `INVALID_ARGUMENT`, `INVALID_PARAMETER`, or `CONSTRAINT_VIOLATION` in `name`. `EXTERNAL_SERVICE_ERROR` means the service that delivers the request to the device rejected it (for example, an unknown `deviceId`), and the response takes that service's HTTP status, which isn't always `400`. After an `EXTERNAL_SERVICE_ERROR`, the payment request is still stored with status `FAILED`, so retry with a new `paymentRequestId`.

## POST /stores/{storeId}/payment-requests

Create a new payment request (Async)

Create a new payment request for the specified store. This is an **asynchronous operation**.

**Async Processing:**
- Returns `202 Accepted` with immediate `paymentRequestId` for tracking
- Processing happens in the background with status updates via callbacks
- Use callbacks (if configured) or polling GET endpoint for completion status
- A new payment request returns with status `QUEUED`. A retry with an existing `paymentRequestId` returns that request's current status
- A request stays `QUEUED` until the terminal responds. It doesn't time out, and no operation cancels it

**Idempotency:**
- A repeated `X-Request-Id` for the same store within 30 minutes returns `409 DUPLICATE_REQUEST`, not the existing payment request
- To retry safely, send your own `paymentRequestId` with a new `X-Request-Id`. When a payment request with that ID already exists in the store, the API returns it instead of creating a new one. This works for 90 days after you create the request
- The retry body isn't compared with the original, so use a new `paymentRequestId` for each new charge

**Required Properties:**
- `type` - Payment request type (`SALE` or `REFUND`)
- `amount` - Payment request amount, except for a `REFUND` with `originalTransactionId`

**Optional Properties:**
- `paymentRequestId` - Your own UUID for the payment request, which makes create safe to retry
- `originalTransactionId` - Transaction to refund, `REFUND` only
- `deviceId` - Device identifier for this payment request
- `paymentInstructions` - Payment instructions
- `notes` - Additional notes about the payment request
- `references` - External system references
- `callbackConfig` - Configuration for async status notifications

**Error codes:** A `400` validation error carries `MALFORMED_REQUEST`, `VALIDATION_ERROR`, `INVALID_ARGUMENT`, `INVALID_PARAMETER`, or `CONSTRAINT_VIOLATION` in `name`. `EXTERNAL_SERVICE_ERROR` means the service that delivers the request to the device rejected it (for example, an unknown `deviceId`), and the response takes that service's HTTP status, which isn't always `400`. After an `EXTERNAL_SERVICE_ERROR`, the payment request is still stored with status `FAILED`, so retry with a new `paymentRequestId`.


### Path parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `storeId` | unknown | yes | Unique identifier for the store |

### Header parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `X-Request-Id` | string <uuid> | no | 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. |

### Request body (required)

Content-Type: `application/json`

```json
{
  "paymentRequestId": "f6a2d8e7-06e9-466f-84b8-9a8b42b2cdf9",
  "type": "SALE",
  "amount": {
    "amount": 5000,
    "currency": "USD",
    "amountType": "SIMPLE"
  },
  "paymentInstructions": {
    "multiTender": true,
    "skipReceiptScreen": true,
    "skipSignatureScreen": true,
    "disableTip": true
  },
  "deviceId": "urn:tid:2cf6f478-e7c6-3378-8cda-74ee60715e13",
  "notes": "Table 5 - Split payment with card",
  "references": [
    {
      "type": "CUSTOM",
      "value": "ORD-2024-001",
      "additionalLabel": "POS Order"
    }
  ],
  "callbackConfig": {
    "url": "https://merchant.example.com/webhooks/payment-status",
    "authentication": {
      "type": "hmac",
      "value": "your-shared-secret-key-12345"
    },
    "payloadConfig": {
      "includeFields": [
        "paymentRequestId",
        "type",
        "amount",
        "storeId",
        "deviceId",
        "transactionIds",
        "transactions"
      ],
      "legacyMode": false
    }
  }
}
```

Schema:

- schema reference: `#/x-ext/2ed927c`

### Responses

**202** — Payment request accepted for async processing

Content-Type: `application/json`

Schema:

- schema reference: `#/x-ext/2ed927c`

**400** — Bad Request - Invalid input data. Branch on the code in `name`. Each `details[]` entry names
the `field` in dot notation, like `amount.currency`.

Content-Type: `application/json`

Schema:

- schema reference: `#/x-ext/e988c33`

**401** — Unauthorized. An expired token, or a token without access to the store, returns this
body with `UNAUTHORIZED_ACCESS`. Other `401` responses might have no body.

Content-Type: `application/json`

Schema:

- schema reference: `#/x-ext/e988c33`

**409** — Conflict - `DUPLICATE_REQUEST`, the `X-Request-Id` was already used for this store

Content-Type: `application/json`

Schema:

- schema reference: `#/x-ext/e988c33`

**429** — Too Many Requests - Rate limit exceeded

Content-Type: `application/json`

Schema:

- schema reference: `#/x-ext/e988c33`

**500** — Internal Server Error

Content-Type: `application/json`

Schema:

- schema reference: `#/x-ext/e988c33`

**default** — Error response

Content-Type: `application/json`

Schema:

- schema reference: `#/x-ext/e988c33`

**Security:** requires `PAT`; scopes `commerce.payment-request:write`.
