Create POS Charges
Create Charge [EXPERIMENTAL]
Notice: This endpoint has different server URLs and authorization method than the rest of the API.
Create a new POS charge.
post/pos/charges
Request
- Base URLhttps://devices.eu-west-1.api.silverflow.com/v1
- AuthAPI key in header -
- 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,
"gratuity": 2599
}
},
"type": {
"cardEntry": "terminal"
},
"transactionReference": "Dz3dIzE74EfH1HeTInyE",
"track2Data": "6799995700000004054D25122010875408456",
"emvData": "5F2A0209785F34010082027C008407A0000000093510950500000080009A031104119C01009F02060000000043149F090200029F10120210A780030400009F2100000000000000FF9F1A0202509F26082E3EAB17CEEC500C9F2701809F330360A0409F34034403029F3501229F360200169F3704BC75E9B39F4005A00090F0019F4C089F21B02E0EEAC454",
"cardSequenceNumber": "001",
"pinBlock": {
"block": "32CF86E514CB24FE",
"zoneId": "my-zone",
"keyId": "my-encryption-key"
},
"terminal": {
"id": "AAFF",
"capabilities": [
"contactChip",
"contactlessChip",
"contactMagStripe",
"oneTap"
]
}
}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,
"gratuity": 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"
}
},
"terminal": {
"id": "AAFF",
"capabilities": [
"contactChip",
"contactlessChip",
"contactMagStripe",
"oneTap"
]
},
"version": 1
}Changes
No recorded changes to this operation across all 1 revision of this API.