Process Standalone Credit
POST/v1/standalonecredits
Standalone Credits allow merchants to issue credits to cardholders without requiring a previous Payment/Settlement.
Click on Send API Request after entering the required data, to see how to process a Standalone Credit request.
Note: If your merchant category code (MCC) is listed to process Original Credits, you must not use Standalone Credits.
Request
Header Parameters
Possible values: [application/json
]
Possible values: [EXTERNAL
, INTERNAL
]
Default value: EXTERNAL
- application/json
Body
Possible values: <= 255 characters
This is the merchant reference number created by the merchant and submitted as part of the request. It must be unique for each request.
Possible values: <= 36 characters
This is the payment token generated by Paysafe that will be used for the request.
This is the amount of the request, in minor units. For example, to process US $10.99, this value should be 1099.
Note: The amount specified in the Credit request must match the amount specified in the Payment Handle request from which the paymentHandleToken is taken.
Possible values: <= 3 characters
This is the currency of the merchant account, for example, USD or CAD. See Currency Codes.
Note: The currencyCode specified in the Credit request must match the currencyCode specified in the Payment Handle request from which the paymentHandleToken is taken.
Possible values: <= 39 characters
This is the customer's IP address.
Possible values: <= 255 characters
This is a description of the transaction, provided by the merchant.
Default value: true
This validates that this request is not a duplicate. A duplicate request is when the merchantRefNum has already been used in a previous request within the past 90 days.
Responses
- 201
Created
Response Headers
Content-Type
string
- application/json
- Schema
- Example (from schema)
- Card
Schema
- cardObject
- rapidTransferObject
- achObject
- bacsObject
- sepaObject
-
AM – American Express
-
DI – Discover
-
JC – JCB
-
MC – Mastercard
-
MD – Maestro
-
SO – Solo
-
VI – Visa
-
VD – Visa Debit
-
VE – Visa Electron
- bacsObject
- sepaObject
Array [
]
Array [
]
-
WEB - Website originated debit (Personal bank accounts only).
-
TEL - elephone-Initiated Entry (Personal bank accounts only).
-
PPD - Personal account debit (Personal bank accounts only).
-
CCD - Business account debit (Business bank accounts only).
Array [
]
Array [
]
-
For Canada see Province Codes
-
For the United States see State Code
-
Other countries have no restrictions.
-
INITIATED – The transaction was initiated with the downstream provider.
-
PENDING - The transaction awaiting payment service provider's response.
-
FAILED – The transaction failed due to either an error or being declined.
-
CANCELLED - The authorization request has been fully reversed.
-
EXPIRED – The transaction request is expired.
-
COMPLETED – The transaction request is completed.
-
RECEIVED – Our system has received the request and is waiting for the downstream processor’s response.
Array [
-
on_completed - Paysafe will return to this merchant url post successful payment.
-
on_failed - Paysafe will return to this merchant url post if payment is failed.
-
on_cancelled - Paysafe will return to this merchant url post if payment is cancelled.
-
default - The default return URL that will be used if specific status return URL is not defined.
]
- true - Production
- false - Non-Production
Array [
-
1st object contains SSN
-
2nd object contains Identity document details.
Array [
- MOD1
- MOD2
]
]
oneOf
card
object
Card details to be used for the transaction
Possible values: >= 8 characters
and <= 20 characters
This is the card number used for the request.
cardExpiry
object
This is the card's expiry date.
Possible values: <= 12
This is the card expiry month.
Possible values: <= 9999
This is the card expiry year.
Possible values: >= 3 characters
and <= 4 characters
, Value must match regular expression ^([0-9]{3,4})$
This is the 3- or 4-digit security code that appears on the card following the card number.
Possible values: <= 50 characters
This is the name of the card holder.
Possible values: [AM
, DI
, JC
, MC
, MD
, SO
, VI
, VD
, VE
]
This is type of card used for the request.
These are the last four digits of the card used for the request.
This is the nickname the merchant has for the card holder.
Possible values: <= 6 characters
These are the first 6 digits of the card Bank Identification Number (BIN), for example: the first 6 digits of the card number.
rapidTransfer
object
oneOf
bacs
object
Details of the bacs account to be used for the transaction.
Possible values: <= 50 characters
This is an alias for this bank account.
Possible values: <= 18 characters
This is the name of the customer or company that owns the bank account.
Possible values: <= 8 characters
This is the bank account number.
Possible values: <= 6 characters
This is the 6-digit sort code that identifies the financial institution and branch of the customer’s bank.
mandate
object
required
Contains customer bank's mandate details
This is the id of the mandate that got created.
This is the identifier of the mandate in the banking system.
Possible values: [PENDING
, ACTIVE
, CANCELLED
, INACTIVE
]
This is the status of the mandate request response.
Possible values: [MERCHANT_CANCELLED
, BANK_CANCELLED
, DECLINED
, REJECTED
, DISPUTED
, UNAUTHORIZED
, TRANSFERRED
]
This is the status reason of the mandate request response.
Possible values: <= 2 characters
These are the last two digits of the account number.
mandates
object[]
This is the id of the mandate that got created.
This is the identifier of the mandate in the banking system.
Possible values: [PENDING
, ACTIVE
, CANCELLED
, INACTIVE
]
This is the status of the mandate request response.
Possible values: [MERCHANT_CANCELLED
, BANK_CANCELLED
, DECLINED
, REJECTED
, DISPUTED
, UNAUTHORIZED
, TRANSFERRED
]
This is the status reason of the mandate request response.
sepa
object
These are the details of the sepa account used for the transaction.
Possible values: <= 50 characters
This is an alias for this bank account.
Possible values: <= 32 characters
This is the name of the customer or company that owns the bank account.
Possible values: >= 8 characters
and <= 11 characters
This is the Bank Identifier Code for the consumer's bank account.
Possible values: >= 8 characters
and <= 34 characters
This is the International Bank Account Number for the costumer's bank account.
mandate
object
required
Contains customer bank's mandate details
This is the id of the mandate that got created.
This is the identifier of the mandate in the banking system.
Possible values: [PENDING
, ACTIVE
, CANCELLED
, INACTIVE
]
This is the status of the mandate request response.
Possible values: [MERCHANT_CANCELLED
, BANK_CANCELLED
, DECLINED
, REJECTED
, DISPUTED
, UNAUTHORIZED
, TRANSFERRED
]
This is the status reason of the mandate request response.
Possible values: <= 2 characters
These are the last two digits of the iban.
mandates
object[]
This is the id of the mandate that got created.
This is the identifier of the mandate in the banking system.
Possible values: [PENDING
, ACTIVE
, CANCELLED
, INACTIVE
]
This is the status of the mandate request response.
Possible values: [MERCHANT_CANCELLED
, BANK_CANCELLED
, DECLINED
, REJECTED
, DISPUTED
, UNAUTHORIZED
, TRANSFERRED
]
This is the status reason of the mandate request response.
ach
object
Details of the ach account to be used for the transaction.
Possible values: <= 22 characters
This is the name of the customer or company.
Possible values: [WEB
, TEL
, PPD
, CCD
]
This is the payment type. Possible values are:
Possible values: [SAVINGS
, CHECKING
, LOAN
]
This is the bank account type.
Possible values: >= 4 characters
and <= 17 characters
This is the bank account number.
Possible values: >= 9 characters
and <= 9 characters
For USD accounts, this is the 9-digit routing number of the bank.
Possible values: >= 2 characters
and <= 2 characters
This is returned in response. It contains only last 2 digits of bank account.
bacs
object
Details of the bacs account to be used for the transaction.
Possible values: <= 50 characters
This is an alias for this bank account.
Possible values: <= 18 characters
This is the name of the customer or company that owns the bank account.
Possible values: <= 8 characters
This is the bank account number.
Possible values: <= 6 characters
This is the 6-digit sort code that identifies the financial institution and branch of the customer’s bank.
mandate
object
required
Contains customer bank's mandate details
This is the id of the mandate that got created.
This is the identifier of the mandate in the banking system.
Possible values: [PENDING
, ACTIVE
, CANCELLED
, INACTIVE
]
This is the status of the mandate request response.
Possible values: [MERCHANT_CANCELLED
, BANK_CANCELLED
, DECLINED
, REJECTED
, DISPUTED
, UNAUTHORIZED
, TRANSFERRED
]
This is the status reason of the mandate request response.
Possible values: <= 2 characters
These are the last two digits of the account number.
mandates
object[]
This is the id of the mandate that got created.
This is the identifier of the mandate in the banking system.
Possible values: [PENDING
, ACTIVE
, CANCELLED
, INACTIVE
]
This is the status of the mandate request response.
Possible values: [MERCHANT_CANCELLED
, BANK_CANCELLED
, DECLINED
, REJECTED
, DISPUTED
, UNAUTHORIZED
, TRANSFERRED
]
This is the status reason of the mandate request response.
sepa
object
These are the details of the sepa account used for the transaction.
Possible values: <= 50 characters
This is an alias for this bank account.
Possible values: <= 32 characters
This is the name of the customer or company that owns the bank account.
Possible values: >= 8 characters
and <= 11 characters
This is the Bank Identifier Code for the consumer's bank account.
Possible values: >= 8 characters
and <= 34 characters
This is the International Bank Account Number for the costumer's bank account.
mandate
object
required
Contains customer bank's mandate details
This is the id of the mandate that got created.
This is the identifier of the mandate in the banking system.
Possible values: [PENDING
, ACTIVE
, CANCELLED
, INACTIVE
]
This is the status of the mandate request response.
Possible values: [MERCHANT_CANCELLED
, BANK_CANCELLED
, DECLINED
, REJECTED
, DISPUTED
, UNAUTHORIZED
, TRANSFERRED
]
This is the status reason of the mandate request response.
Possible values: <= 2 characters
These are the last two digits of the iban.
mandates
object[]
This is the id of the mandate that got created.
This is the identifier of the mandate in the banking system.
Possible values: [PENDING
, ACTIVE
, CANCELLED
, INACTIVE
]
This is the status of the mandate request response.
Possible values: [MERCHANT_CANCELLED
, BANK_CANCELLED
, DECLINED
, REJECTED
, DISPUTED
, UNAUTHORIZED
, TRANSFERRED
]
This is the status reason of the mandate request response.
Possible values: <= 36 characters
This is the ID returned in the response. This ID can be used for future associated requests.
Possible values: [CARD
, BANK_TRANSFER
, ACH
]
This is the payment type associated with the Payment Handle used for this request.
This is the date and time the transaction was processed.
billingDetails
object
Customer's billing details.
Note: For single-use Payment Handles, this address information will be ignored if the paymentHandleTokenFrom parameter is included in the Payment Handle creation request and there is already address information associated with that customer.
Possible values: <= 36 characters
This is the ID of the billing address, returned in the response.
This is the status of the address.
Possible values: <= 50 characters
This is the nickname the merchant has for the billing address.
Possible values: <= 50 characters
This is the first line of the customer's street address.
Possible values: <= 50 characters
This is the first line of the street address.
Note: Mandatory for VIPPreferred
Possible values: <= 50 characters
This is the second line of the street address, if required (e.g., apartment number).
Possible values: <= 40 characters
This is the city where the address is located.
Possible values: >= 2 characters
and <= 40 characters
This is the state/province/region in which the customer lives.
Possible values: >= 2 characters
and <= 2 characters
This is the country where the address is located. See Country Codes.
Possible values: <= 10 characters
This is the zip, postal, or post code of the customer's address.
Possible values: <= 40 characters
This is the customer's telephone number.
Possible values: [INITIATED
, PENDING
, FAILED
, CANCELLED
, EXPIRED
, COMPLETED
, RECEIVED
]
This is the status of the payment handle. Possible values are:
returnLinks
object[]
Possible values: [default
, on_completed
, on_failed
, on_cancelled
]
This is the link type that allows different endpoints to be targeted depending on the end state of the transaction.
This is the URI of the resource.
This is the HTTP method.
This flag indicates the environment.
ISO 8601 format (UTC). This is the date and time the resource was last updated.
ISO 8601 format (UTC). This is the date and time the resource was last updated.
profile
object
This is customer's profile details.
The customer's profile id in the system. If this is present rest all other fields are not required.
The status of customer in the system, returned in the response.
Possible values: <= 10 characters
This is the reference number for the customer created by the merchant and submitted as part of the request. It must be unique for each customer.
Note: This value is mandatory when fundingTransaction is used.
Possible values: [en_US
, fr_CA
, en_GB
, en_CA
]
This indicates the customer's locale preference.
Note: Optional for GiroPay, Vippreferred-Direct-Registration. Not required for Paysafe Card Payouts.
Possible values: <= 80 characters
This is the customer’s first name.
Possible values: <= 80 characters
This is the customer’s last name.
Possible values: <= 255 characters
This is the customer's email address.
Possible values: <= 40 characters
This is the customer's phone number.
Note: Optional for GiroPay. Not required for Paysafe Card Payouts.
dateOfBirth
object
This is the recipient's date of birth.
Possible values: <= 31
This is the day of birth.
Possible values: <= 12
This is the month of birth.
Possible values: >= 1900
This is the year of birth.
Possible values: <= 40 characters
Customer's mobile number.
Possible values: [M
, F
]
This field indicates the Customer's gender.
M - Male
F - Female
Possible values: <= 30 characters
This field indicates the Customer's nationality.
identityDocuments
object[]
identityDocuments
object[]
required
This is array of 2 JSON objects.
anyOf
Possible values: [SOCIAL_SECURITY
]
Default value: SOCIAL_SECURITY
Value will always be "SOCIAL_SECURITY" This is part of 1st JSON object.
Possible values: <= 9 characters
The customer’s social security number.
Possible values: [PASSPORT
, IDENTITY_CARD
, DRIVING_LICENSE
, SOCIAL_SECURITY
, TAX_IDENTIFICATION
, NATIONAL_IDENTITY
, STATE_ID
, MILITARY_ID
, WORK_PERMIT
, RESIDENCE_PERMIT
, REGISTRATION_ID
, ACRA
, LICENSE_NUMBER
, REGISTRATION_NUMBER
, BUSINESS_TAX_IDENTIFICATION
]
Identity documnent can be one of the allowed values:
Possible values: >= 5 characters
and <= 31 characters
The number associated with ID.
Value will always be "US".
Possible values: <= 2 characters
Two letter state code. See State Codes
expiryDate
object
required
The expiration date associated with ID.
Expiry year.
Expiry month.
Transaction identifier that can be used to reconcile this transaction with the provider gateway.
Possible values: <= 255 characters
This is the merchant reference number created by the merchant and submitted as part of the request. It must be unique for each request.
Possible values: <= 36 characters
This is the payment token generated by Paysafe that will be used for the request.
This is the amount of the request, in minor units. For example, to process US $10.99, this value should be 1099.
Note: The amount specified in the Credit request must match the amount specified in the Payment Handle request from which the paymentHandleToken is taken.
Possible values: <= 3 characters
This is the currency of the merchant account, for example, USD or CAD. See Currency Codes.
Note: The currencyCode specified in the Credit request must match the currencyCode specified in the Payment Handle request from which the paymentHandleToken is taken.
Possible values: <= 39 characters
This is the customer's IP address.
Possible values: <= 255 characters
This is a description of the transaction, provided by the merchant.
Default value: true
This validates that this request is not a duplicate. A duplicate request is when the merchantRefNum has already been used in a previous request within the past 90 days.
{
"id": "25f6dadf-176a-415f-95c9-6ff39ff697ba",
"paymentType": "CARD",
"txnTime": "2023-01-19T10:48:04Z",
"billingDetails": {
"id": "string",
"status": "string",
"nickName": "Home",
"street": "Street",
"street1": "street1",
"street2": "street2",
"city": "Toronto",
"state": "ON",
"country": "CA",
"zip": "M5H 2N2",
"phone": "8765846321"
},
"status": "INITIATED",
"returnLinks": [
{
"rel": "default",
"href": "https://US_commerce_site/payment/return/success",
"method": "GET"
}
],
"liveMode": true,
"updatedTime": "2023-01-19T11:33:23Z",
"statusTime": "2023-01-19T11:33:23Z",
"profile": {
"id": "string",
"status": "string",
"merchantCustomerId": "string",
"locale": "en_US",
"firstName": "Venkata Suresh",
"lastName": "Chagalamarri",
"email": "paysafe@gmail.com",
"phone": "1234567891",
"dateOfBirth": {
"day": 6,
"month": 5,
"year": 1998
},
"mobile": "9846573804",
"gender": "M",
"nationality": "Indian",
"identityDocuments": [
{
"identityDocuments": [
{
"type": "SOCIAL_SECURITY",
"documentNumber": "SSN123456"
},
{
"type": "PASSPORT",
"documentNumber": "1234567",
"issuingCountry": "USA",
"issuingCountrySubdvision": "SA",
"expiryDate": {
"month": 12,
"year": 2022
}
}
]
}
]
},
"gatewayReconciliationId": "string",
"merchantRefNum": "merchant ABC-444",
"paymentHandleToken": "842778a0-03a2-11e9-8eb2-f2801f1b9fd1",
"amount": 10098,
"currencyCode": "BTC",
"customerIp": "204.91.0.12",
"description": "Winning payment from Loto",
"dupCheck": true,
"card": {
"cardNum": "4111111111111111",
"cardExpiry": {
"month": 12,
"year": 2022
},
"cvv": "string",
"holderName": "Suresh's card",
"cardType": "AM",
"lastDigits": "string",
"nickName": "string",
"cardBin": "411111"
}
}
{
"id": "eddbec36-6fc7-48fb-a694-dfc5b314ec0d",
"paymentType": "CARD",
"paymentHandleToken": "SCQp7CmWCSRFmvzv",
"merchantRefNum": "32be35aac78dbfe252a2",
"currencyCode": "USD",
"txnTime": "2023-01-20T05:59:13Z",
"billingDetails": {
"street": "TEST",
"city": "CA",
"zip": "12345",
"state": "CA",
"country": "US"
},
"customerIp": "204.91.0.12",
"status": "PENDING",
"amount": 500,
"description": "Winning payment from Loto 649",
"card": {
"cardExpiry": {
"month": "10",
"year": "2025"
},
"holderName": "Dilip",
"cardType": "MC",
"cardBin": "510040",
"lastDigits": "0000",
"cardCategory": "DEBIT"
}
}