Create a Charge - Keyed
Changed onThis endpoint enables you to securely initiate payment transactions by submitting charge details via a POST request. You can enhance transaction data with:
- <a href="https://docs.payarc.net/reference/create-a-charge-keyed-copy#enhancing-charges-with-level-2-and-level-3-card-data" style="color: grey;">LEVEL 2 or LEVEL 3</a> card information.
- <a href="https://docs.payarc.net/reference/create-a-charge-keyed-copy#metadata" style="color: grey;">Transaction metadata</a> for detailed insights into each charge.
post/v1/charges (COPY)
Request
- Base URLhttps://testapi.payarc.net
- URLhttps://testapi.payarc.net/v1/charges (COPY)
- AuthAPI key in header Authorization
Headers
Acceptstring required
Indicates which content types, expressed as MIME types, the client is able to understand.
Content-Typestring required
Indicates the media type of the resource sent in the HTTP message body. <br /><br /><b>Possible Values:</b><br /> application/json<br />application/x-www-form-urlencoded
Request body
Response
201
Example response
{
"data": {
"object": "Charge",
"id": "nBoLWODLMLLoOXyb",
"amount": 1200,
"amount_captured": "1200",
"payarc_fees": 35,
"type": "Sale",
"net_amount": 1165,
"captured": 1,
"status": "submitted_for_settlement",
"auth_code": "TAS712",
"statement_description": "statement description",
"created_at": 1611924403,
"updated_at": 1611924405,
"email": "john.doe@example.com",
"phone_number": "5417543010",
"card_level": "LEVEL1",
"created_by": "bubbles@eyepaste.com",
"card": {
"data": {
"object": "Card",
"id": "2mMPL029yyP50vyN",
"card_source": "PHONE",
"card_holder_name": "Test One",
"is_default": 1,
"exp_month": "12",
"exp_year": "2022",
"fingerprint": "9v09mPMLP5NMNM0m",
"brand": "V",
"last4digit": "1111",
"first6digit": 411111,
"customer_id": "4jAPDKVp44MVNxnM",
"created_at": 1611924035,
"updated_at": 1611924038
}
}
},
"meta": {
"include": [
"review"
]
}
}Changes
- info
endpoint added
- info