Initiating a charge
Learn how to specify the type of charge.
curl --location --request POST 'http://<<host>>/v1/shoppers/me/carts/active' \
--header 'Content-Type: application/json' \
--header 'authorization: Basic ***\
--data-raw '{
"cart": {
"lineItems": {
"lineItem": {
"quantity": "2",
"product": {
"id": 1234
}
}
},
"chargeType": "moto"
}
}'{
"order": {
"uri": "https://api.digitalriver.com/v1/shoppers/me/orders/47278080023",
"id": "47278080023",
"submissionDate": "2018-04-27T20:31:13.109Z",
"displayName": "New Order",
"locale": "en_US",
"optIn": "false",
"testOrder": "false",
"taxExempt": "false",
"businessEntityCode": "DR_INC-ENTITY",
"orderState": "Submitted",
"orderStateDetails": {
"description": "Settled",
"settled": {
"currency": "USD",
"value": "19.99"
},
"refunded": {
"currency": "USD",
"value": "19.99"
}
"chargeType": "moto"
},
"customAttributes": {
"attribute": [
{
"name": "name",
"value": "string",
"type": "string"
}
]
}
},Customer initiated
Can a CVV be used?
Can 3DS measures be used?
Merchant initiated
Can a CVV be used?
Can 3DS measures be used?
Mail order/telephone order
Can a CVV be used?
Can 3DS measures be used?
Last updated