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_debit or eft_debit Payment Method. card_present Payment 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 currency matches the currency the merchant processes for that Payment Method type, for example usd for card and ach_debit or cad for card and eft_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 scopes explicitly include independent_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" }
    }'
PARAMETERREQUIREDDESCRIPTION
amountYesA positive integer in the smallest currency unit (for example, 1500 credits $15.00).
currencyYesThree-letter ISO currency code, in lowercase.
payment_method_idYesThe id of the card, ach_debit or eft_debit Payment Method to credit.
idempotency_keyYesA unique key you choose, up to 255 characters, that makes the request safe to retry. See .
metadataNoA 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, currency and payment_method_id returns the original Independent Credit, and no further funds are sent.
  • A request that reuses a key with a different amount, currency or payment_method_id is rejected with a 409 response.

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

STATUSDESCRIPTION
pendingThe 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 .
succeededThe processor accepted the credit. authorized_at and settled_at are set.
failedThe processor declined the credit. failure_code and failure_message explain why.
canceledThe 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

PARAMETERTYPEDESCRIPTION
statusEnumOne of pending, succeeded, failed, or canceled.
created_at_gteISO 8601 timestampInclude only credits created on or after this timestamp.
created_at_lteISO 8601 timestampInclude only credits created on or before this timestamp.
metadataObjectInclude only credits whose metadata contains these key-value pairs, for example metadata[order_id]=1234.
include_connected_accountsBooleanWhen requested from a partner Account, also include credits from its connected Merchant Accounts.
offsetIntegerZero-based offset of the first item to return. Defaults to 0.
limitIntegerMaximum 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:

EVENTWHEN IT FIRES
independent_credit.succeededAn Independent Credit was accepted by the processor.

Common Errors

STATUSCAUSE
400The 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.
401The credentials don't include the independent_credits:write scope (for example, partner credentials or a * API key).
404The Payment Method doesn't exist or isn't accessible to the Merchant Account.
409The idempotency_key was already used for a request with a different amount, currency or payment_method_id.
Was this page helpful?
NextRefund a Payment