Process a Sale {#tink-sale-intro}
=================================

This section describes how you can send a sale request to begin processing a payment.  
After sending a sale request, a successful response includes a `PENDING` status in the status field and a sale request ID in the id field. Save the request ID to send follow-on check status requests. You must send check status requests to know when the sale is settled.

Merchant Redirect URLs {#tink-sale-intro_merchant-redirect-urls}
----------------------------------------------------------------

When your customer is redirected to their bank's website during checkout, they can experience one of these outcomes:

* Canceled purchase
* Failed purchase
* Successful purchase

Depending on which outcome your customer experiences determines which of your merchant URLs the customer is redirected to. Tink requires you to provide your redirect URLs in your sale request. To provide your redirect URLs, you can choose one of these options:
* Configure your redirect URLs in the `Business Center` in ![](/content/dam/new-documentation/documentation/en-us/common/images/ebc/ebc-icon-avilable-products.svg/jcr:content/renditions/original) Available Products. Your merchant account must be enabled to access Product Configuration: Alternative Payment Methods.

* Contact your `Cybersource` account manager to update your merchant account.

* Include these fields in your sale request:

  [merchantInformation.cancelUrl](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/merch-info-aa/merch-info-cancel-url.md "")
  :
  Set to the URL to which the customer is redirected after canceling a payment or closing the browser.

  [merchantInformation.failureUrl](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/merch-info-aa/merch-info-failure-url.md "")
  :
  Set to the URL to which the customer is redirected when a payment fails because of insufficient funds or because the issuer declines it.

  [merchantInformation.successUrl](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/merch-info-aa/merch-info-success-url.md "")
  :
  Set to the URL to which the customer is redirected after completing a payment. Do not use this URL to confirm a payment because the reply is not signed and it could be tampered with.  
  `Cybersource` recommends that the success URL link to a static webpage with text that tells the customer their payment is being processed. A follow-up email or webpage can then be used to inform them when their payment is successful.  
  If your account is configured to include your redirect URLs, and you send these fields in your sale request, `Cybersource` uses the URLs you include in the fields.

Endpoints
---------

**Production:** `POST ``https://api.cybersource.com``/pts/v2/payments`{#tink-sale-intro_d15e345}  
**Test:** `POST ``https://apitest.cybersource.com``/pts/v2/payments`{#tink-sale-intro_d15e355}

Required Fields for Processing a Sale {#tink-sale-req-fields}
=============================================================

[merchantInformation.cancelUrl](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/merch-info-aa/merch-info-cancel-url.md "")
:
This field is optional if your account is configured to automatically include your redirect URLs.

[merchantInformation.failureUrl](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/merch-info-aa/merch-info-failure-url.md "")
:
This field is optional if your account is configured to automatically include your redirect URLs.

[merchantInformation.successUrl](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/merch-info-aa/merch-info-success-url.md "")
:
This field is optional if your account is configured to automatically include your redirect URLs.

[orderInformation.amountDetails.currency](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/order-info-aa/order-info-amount-details-currency.md "")
:
Set to `GBP`.

[orderInformation.amountDetails.totalAmount](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/order-info-aa/order-info-amount-details-total-amount.md "")
:

[orderInformation.billTo.country](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/order-info-aa/order-info-bill-to-country.md "")
:
Set to `UK`.

[paymentInformation.paymentType.method.name](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/payment-info-aa/payment-info-payment-type-method-name.md "")
:
Set to `tinkPayByBank`.

[paymentInformation.paymentType.name](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/payment-info-aa/payment-info-payment-type-name.md "")
:
Set to `bankTransfer`.

[processingInformation.actionList](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/processing-info-aa/processing-info-action-list.md "")
:
Set to `[AP_SALE]`.

Optional Fields for Processing a Sale {#tink-sale-opt-fields}
=============================================================

[clientReferenceInformation.code](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/client-ref-info-aa/client-ref-info-code.md "")
:
Set to a unique value for your internal tracking purposes.

[clientReferenceInformation.reconciliationId](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/client-ref-info-aa/client-ref-info-reconciliation-id.md "")
:

[merchantInformation.merchantDescriptor.name](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/merch-info-aa/merch-info-merchant-descriptor-name.md "")
:

[orderInformation.billTo.firstName](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/order-info-aa/order-info-bill-to-first-name.md "")
:

[orderInformation.billTo.lastName](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/order-info-aa/order-info-bill-to-last-name.md "")
:

paymentInformation.bank.swiftCode
:

paymentInformation.directDebit.mandate.clearingDate
:

paymentInformation.options.id
:

Example: Processing a Sale {#tink-sale-ex-rest}
===============================================

Request

```
{
    "paymentInformation": {
        "paymentType": {
            "name": "bankTransfer",
            "method": {
                "name": "tinkPayByBank"
            }
        }
    },
    "processingInformation": {
        "actionList": [
            "AP_SALE"
        ]
    },
    "orderInformation": {
        "amountDetails": {
            "totalAmount": "50.00",
            "currency": "GBP"
        },
        "billTo": {
            "country": "UK"
        }
    }
}
```

Request + Redirect URLs

```
{
    "paymentInformation": {
        "paymentType": {
            "name": "bankTransfer",
            "method": {
                "name": "tinkPayByBank"
            }
        }
    },
    "processingInformation": {
        "actionList": [
            "AP_SALE"
        ]
    },
    "merchantInformation": {
    "cancelUrl": "merchant_cancel_url.com",
    "successUrl": "merchant_success_url.com",
    "failureUrl": "merchant_failure_url.com"
  },
    "orderInformation": {
        "amountDetails": {
            "totalAmount": "50.00",
            "currency": "GBP"
        },
        "billTo": {
            "country": "UK"
        }
    }
}
```

Response to a Successful Request

```
{
    "processorInformation": {
        "responseCode": "00001",
        "transactionId": "cd8ec59f-5b73-4efe-9789-952fa1475b43",
        "paymentUrl": "https://link.staging.oxford.tink.se/1.0/pay/direct?market=GB&session_id=2b3bc1e13e334d5bb86245ae5f1c31449d38004b3d5842248a80463a766be788&redirect_uri=https%3A%2F%2Fapi.staging.oxford.tink.com%2Fpayments%2Fv1%2Fcybersource%2Fcallback&payment_request_id=cd8ec59f-5b73-4efe-9789-952fa1475b43&locale=en_US&client_id=5b4c4850e3e240e28f74c4be0ce11405"
    },
    "orderInformation": {
        "amountDetails": {
            "totalAmount": "50.00",
            "currency": "GBP"
        }
    },
    "reconciliationId": "KOJMTDIN58M3",
    "message": "Request was processed successfully.",
    "status": "PENDING",
    "id": "7537195501166875104805",
    "submitTimeUtc": "2025-07-28T16:19:10Z"
}
```

Response Statuses for Processing a Sale {#tink-sale-reply-status}
=================================================================

`Cybersource` responds to your request with one of these statuses in the status field:

* `FAILED`: The sale request is unsuccessful. A possible reason is invalid fields or missing fields in the request.
* `PENDING`: The sale request is successful and is currently processing. Send check status requests until the status updates.

{#tink-sale-reply-status_statuses}  
With an active webhook subscription, you will receive real-time notifications when the transaction status updates. For more information, see [Create a Webhook Subscription](/docs/cybs/en-us/tink/developer/all/rest/tink/tink-process-trxn/tink-webhooks-intro.md "").  
If you do not receive a webhook notification, send check status requests until you receive an updated status. For more information, see [Check a Status](/docs/cybs/en-us/tink/developer/all/rest/tink/tink-process-trxn/tink-checkstatus-intro.md "").
