Create Charges
Create Charge
Create a new charge.
Optionally providing a 3DS result is supported in case 3DS was done using the 3DS Authentication endpoint or with an external party.
Diners support is <a class="experimental-tag-link" href="https://docs.silverflow.com/guides/api-lifecycle#tag/EXPERIMENTAL-Tag"><span class="tag experimental-tag">EXPERIMENTAL</span></a>.
Requires the charges:Create permission.
post/charges
Request
- Base URLhttps://eu-west-1.api.silverflow.com/v1
- Auth
- HTTP basic
- or HTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Headers
Idempotency-Keystring
This key is used to deduplicate requests that are retried. For more information see the section on Idempotency.
Example:28gKCluIEKp8jVboUyr2
Request body
Example request
{
"merchantAcceptorResolver": {
"merchantAcceptorKey": "mac-1eOdAHhgstYTUhlphPFf"
},
"card": {
"number": "4761070000000905",
"cvc": "123",
"holderName": "Joe Cardholder"
},
"tokenDetails": {
"eci": "05",
"tokenCryptogram": "112233445566778899001122334="
},
"amount": {
"value": 2599,
"currency": "EUR"
},
"type": {
"cardEntry": "e-commerce"
},
"threeDsAuthenticationResult": {
"authenticationValue": "kANBCCDDYJYjadADpka8KoQMqS",
"directoryServerTransId": "5340af8a-5505-4bf6-abcd-123412341234",
"eci": "05"
},
"transactionReference": "Dz3dIzE74EfH1HeTInyE",
"billingAddress": {
"countryCode": {
"alpha3": "NLD"
},
"stateOrProvince": "NH",
"city": "Amsterdam",
"line1": "Langtown Road",
"line2": "4200",
"postalCode": "1234BC"
},
"riskAssessmentKey": "rak-1e1dAHhgstYTUhlphPzZ",
"dynamicDescriptor": {
"merchantName": "Acme Inc.",
"merchantCity": "Amsterdam"
},
"foreignRetailer": {
"amount": 1000
},
"subMerchant": {
"id": "SUB123456",
"address": {
"countryCode": {
"alpha3": "NLD"
},
"stateOrProvince": "NH",
"city": "Amsterdam",
"line1": "Langtown Road",
"line2": "4200",
"postalCode": "1234BC"
}
},
"enhancedData": {
"taxAmount": 300,
"customerCode": "REF12345",
"destinationAddress": {
"countryCode": {
"alpha3": "NLD"
},
"postalCode": "1234BC"
},
"discountAmount": 50,
"orderDate": "2026-05-01",
"shippingAddress": {
"postalCode": "1234BC"
},
"timeOfPurchase": "1402"
},
"initialTransactionReferences": {
"transactionLinkId": "qtQRrYlsSvSecPJDBzrzYA"
}
}Response
The created charge
Example response
{
"key": "chg-1e1dAHhgstYTUhlphPzZ",
"merchantAcceptorRef": {
"key": "mac-1eOdAHhgstYTUhlphPFf",
"version": 1
},
"tokenDetails": {
"eci": "05"
},
"amount": {
"value": 2599,
"currency": "EUR"
},
"cardholderBillingAmount": {
"value": 2599,
"currency": "EUR"
},
"type": {
"cardEntry": "e-commerce"
},
"status": {
"authentication": "authenticated",
"authorization": "approved",
"clearing": "pending"
},
"authentication": {
"sca": {
"result": {
"directoryServerTransId": "5340af8a-5505-4bf6-abcd-123412341234"
}
}
},
"transactionReference": "Dz3dIzE74EfH1HeTInyE",
"authorizationIsoFields": {
"responseCode": "00",
"responseCodeDescription": "Approved",
"authorizationCode": "4A4316",
"systemTraceAuditNumber": "123456",
"retrievalReferenceNumber": "131608123456",
"networkSpecificFields": {
"cvcResult": "Y",
"avsResult": "Y"
}
},
"billingAddress": {
"countryCode": {
"alpha3": "NLD",
"alpha2": "NL",
"numeric": "528"
},
"stateOrProvince": "NH",
"city": "Amsterdam",
"line1": "Langtown Road",
"line2": "4200",
"postalCode": "1234BC"
},
"dynamicDescriptor": {
"merchantName": "Acme Inc.",
"merchantCity": "Amsterdam"
},
"foreignRetailer": {
"amount": 1000
},
"subMerchant": {
"id": "SUB123456",
"address": {
"countryCode": {
"alpha3": "NLD",
"alpha2": "NL",
"numeric": "528"
},
"stateOrProvince": "NH",
"city": "Amsterdam",
"line1": "Langtown Road",
"line2": "4200",
"postalCode": "1234BC"
}
},
"version": 1
}Changes
No recorded changes to this operation across all 1 revision of this API.