Create Charges
Create POS Charge
Create a new card-present charge.
Requires one of the following permissions:
- charges:Create
- charges:CreatePos
post/charges/pos
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"
},
"amount": {
"value": 2599,
"currency": "EUR",
"breakdown": {
"baseAmount": 2599,
"cashback": 2599
}
},
"type": {
"cardEntry": "terminal"
},
"transactionReference": "Dz3dIzE74EfH1HeTInyE",
"track2Data": "6799995700000004054D25122010875408456",
"emvData": "5F2A0209785F34010082027C008407A0000000093510950500000080009A031104119C01009F02060000000043149F090200029F10120210A780030400009F2100000000000000FF9F1A0202509F26082E3EAB17CEEC500C9F2701809F330360A0409F34034403029F3501229F360200169F3704BC75E9B39F4005A00090F0019F4C089F21B02E0EEAC454",
"cardSequenceNumber": "001",
"pinBlock": {
"block": "32CF86E514CB24FE",
"zoneId": "my-zone"
},
"terminal": {
"id": "AAFF",
"capabilities": [
"contactChip",
"contactlessChip",
"contactMagStripe",
"oneTap"
]
},
"subMerchant": {
"id": "SUB123456",
"address": {
"countryCode": {
"alpha3": "NLD"
},
"stateOrProvince": "NH",
"city": "Amsterdam",
"line1": "Langtown Road",
"line2": "4200",
"postalCode": "1234BC"
}
},
"pointOfSaleAddress": {
"countryCode": {
"alpha3": "NLD"
},
"stateOrProvince": "NH",
"city": "Amsterdam",
"line1": "Langtown Road",
"line2": "4200",
"postalCode": "1234BC"
},
"dynamicDescriptor": {
"merchantName": "Acme Inc.",
"merchantCity": "Amsterdam"
}
}Response
The created charge
Example response
{
"key": "chg-1e1dAHhgstYTUhlphPzZ",
"merchantAcceptorRef": {
"key": "mac-1eOdAHhgstYTUhlphPFf",
"version": 1
},
"amount": {
"value": 2599,
"currency": "EUR",
"breakdown": {
"baseAmount": 2599,
"cashback": 2599
}
},
"type": {
"cardEntry": "terminal"
},
"status": {
"authorization": "approved",
"clearing": "pending"
},
"transactionReference": "Dz3dIzE74EfH1HeTInyE",
"newEmvData": "5F2A0209785F34010082027C008407A0000000093510950500000080009A031104119C01009F02060000000043149F090200029F10120210A780030400009F2100000000000000FF9F1A0202509F26082E3EAB17CEEC500C9F2701809F330360A0409F34034403029F3501229F360200169F3704BC75E9B39F4005A00090F0019F4C089F21B02E0EEAC454",
"authorizationIsoFields": {
"responseCode": "00",
"responseCodeDescription": "Approved",
"authorizationCode": "4A4316",
"networkCode": "0000",
"systemTraceAuditNumber": "123456",
"retrievalReferenceNumber": "131608123456",
"networkSpecificFields": {
"cvcResult": "Y",
"avsResult": "Y"
}
},
"subMerchant": {
"id": "SUB123456",
"address": {
"countryCode": {
"alpha3": "NLD",
"alpha2": "NL",
"numeric": "528"
},
"stateOrProvince": "NH",
"city": "Amsterdam",
"line1": "Langtown Road",
"line2": "4200",
"postalCode": "1234BC"
}
},
"pointOfSaleAddress": {
"countryCode": {
"alpha3": "NLD",
"alpha2": "NL",
"numeric": "528"
},
"stateOrProvince": "NH",
"city": "Amsterdam",
"line1": "Langtown Road",
"line2": "4200",
"postalCode": "1234BC"
},
"dynamicDescriptor": {
"merchantName": "Acme Inc.",
"merchantCity": "Amsterdam"
},
"terminal": {
"id": "AAFF",
"capabilities": [
"contactChip",
"contactlessChip",
"contactMagStripe",
"oneTap"
]
},
"version": 1
}Changes
No recorded changes to this operation across all 1 revision of this API.