Independent Credits
An Independent Credit sends funds from a merchant to a customer’s card or bank account. Unlike a Refund, it isn’t tied to an earlier payment. You can use one for a goodwill credit, a rebate, or a refund of a payment that was taken outside Paydude.
Independent Credits are only available to Merchant Accounts that have been approved for them, and only on supported processors. They are enabled by default in our sandbox for testing. Contact support at support@paydude.io to enable them on a Merchant Account in production.
Requirements
Before you create an Independent Credit, make sure that:
- The Merchant Account is approved for Independent Credits.
- The destination Payment Method API is a
card,ach_debitoreft_debitPayment Method.card_presentPayment Methods are not supported. - The Payment Method was created on the same Merchant Account that sends the credit, and can still be used (single-use Payment Methods can’t have been consumed yet).
- The
currencymatches the currency the merchant processes for that Payment Method type, for exampleusdforcardandach_debitorcadforcardandeft_debit.
Authentication
Independent Credits are created by the Merchant Account itself, so the request must be made with merchant credentials:
- A merchant user with the Owner or Admin role, or
- A merchant secret API key whose
scopesexplicitly includeindependent_credits:write.
Partner credentials, and API keys created with the default * scope, can read Independent Credits but cannot create them. Requests made with them return a 401 response.
Create an Independent Credit
To send a credit, call Create an Independent Credit API with the amount, currency, destination Payment Method and an idempotency_key.
curl -X POST -L 'https://api.sandbox-paymentsonline.io/v1/independent-credits' \
-H 'Content-Type: application/json' \
-H 'payments-account: {{MERCHANT_ACCOUNT_ID}}' \
-H 'payments-api-key: {{SECRET_KEY}}' \
-d '{
"amount": 1500,
"currency": "usd",
"payment_method_id": "{{PAYMENT_METHOD_ID}}",
"idempotency_key": "credit-order-1234",
"metadata": { "order_id": "1234" }
}'| PARAMETER | REQUIRED | DESCRIPTION |
|---|---|---|
amount | Yes | A positive integer in the smallest currency unit (for example, 1500 credits $15.00). |
currency | Yes | Three-letter ISO currency code, in lowercase. |
payment_method_id | Yes | The id of the card, ach_debit or eft_debit Payment Method to credit. |
idempotency_key | Yes | A unique key you choose, up to 255 characters, that makes the request safe to retry. See . |
metadata | No | A set of key-value pairs to store with the credit. See Metadata. |
Sample response:
{
"id": "ic_01HXYZABC...",
"account_id": "acct_...",
"amount": 1500,
"currency": "usd",
"status": "succeeded",
"payment_method_id": "pm_...",
"metadata": { "order_id": "1234" },
"failure_code": null,
"failure_message": null,
"source_type": "tilled_api",
"source_transaction_id": null,
"authorized_at": "2026-11-03T18:30:01.000Z",
"settled_at": "2026-11-03T18:30:01.000Z",
"canceled_at": null,
"created_at": "2026-11-03T18:30:00.000Z",
"updated_at": "2026-11-03T18:30:01.000Z"
}Idempotency
Every create request needs an idempotency_key. If a request times out or you aren’t sure it went through, retry it with the same key:
- A retry with the same key,
amount,currencyandpayment_method_idreturns the original Independent Credit, and no further funds are sent. - A request that reuses a key with a different
amount,currencyorpayment_method_idis rejected with a409response.
If the create request returns a 500 response, the outcome with the processor couldn’t be confirmed and the credit is left pending for reconciliation. Retrying with the same key returns that pending credit rather than sending the funds a second time, so don’t switch to a new key to get past the error.
Keys are scoped to the Merchant Account, so different merchants can use the same key value. Use a value tied to the reason for the credit (such as an order or ticket id) so a retry always carries the same key.
Independent Credit Lifecycle
| STATUS | DESCRIPTION |
|---|---|
pending | The credit has been recorded and is still being processed. A credit also stays pending if its outcome couldn't be confirmed with the processor; see . |
succeeded | The processor accepted the credit. authorized_at and settled_at are set. |
failed | The processor declined the credit. failure_code and failure_message explain why. |
canceled | The processor canceled the credit. canceled_at is set. |
Retrieve an Independent Credit
To look up a single credit by its id, call Get an Independent Credit API.
curl -L 'https://api.sandbox-paymentsonline.io/v1/independent-credits/{{INDEPENDENT_CREDIT_ID}}' \
-H 'payments-account: {{MERCHANT_ACCOUNT_ID}}' \
-H 'payments-api-key: {{SECRET_KEY}}'A 404 response means the credit either doesn’t exist or doesn’t belong to the Account identified by the request headers.
List Independent Credits
Retrieve a merchant’s credits, newest first, with List Independent Credits API.
curl -L 'https://api.sandbox-paymentsonline.io/v1/independent-credits?status=succeeded&metadata[order_id]=1234' \
-H 'payments-account: {{MERCHANT_ACCOUNT_ID}}' \
-H 'payments-api-key: {{SECRET_KEY}}'Sample response:
{
"items": [
{
"id": "ic_01HXYZABC...",
"account_id": "acct_...",
"amount": 1500,
"currency": "usd",
"status": "succeeded",
"payment_method_id": "pm_...",
"metadata": { "order_id": "1234" },
"created_at": "2026-11-03T18:30:00.000Z"
}
],
"total": 1,
"offset": 0,
"limit": 30,
"has_more": false
}Filter parameters
| PARAMETER | TYPE | DESCRIPTION |
|---|---|---|
status | Enum | One of pending, succeeded, failed, or canceled. |
created_at_gte | ISO 8601 timestamp | Include only credits created on or after this timestamp. |
created_at_lte | ISO 8601 timestamp | Include only credits created on or before this timestamp. |
metadata | Object | Include only credits whose metadata contains these key-value pairs, for example metadata[order_id]=1234. |
include_connected_accounts | Boolean | When requested from a partner Account, also include credits from its connected Merchant Accounts. |
offset | Integer | Zero-based offset of the first item to return. Defaults to 0. |
limit | Integer | Maximum number of items to return. Defaults to 30; capped at 100. |
Webhook Events
Subscribe to this Webhook API event to be notified when a credit is sent:
| EVENT | WHEN IT FIRES |
|---|---|
independent_credit.succeeded | An Independent Credit was accepted by the processor. |
Common Errors
| STATUS | CAUSE |
|---|---|
400 | The Account isn't approved for Independent Credits, the Payment Method type or currency isn't supported, or the Payment Method can no longer be used. |
401 | The credentials don't include the independent_credits:write scope (for example, partner credentials or a * API key). |
404 | The Payment Method doesn't exist or isn't accessible to the Merchant Account. |
409 | The idempotency_key was already used for a request with a different amount, currency or payment_method_id. |
