curl --request POST \
--url https://api.sprucecollective.co.uk/payments/create \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"amount_cents": 123,
"currency": "<string>",
"payment_method": "<string>",
"description": "<string>",
"metadata": {}
}
'{
"amount_cents": 123,
"created_at": "<string>",
"currency": "<string>",
"description": "<string>",
"fraud_score": 123,
"gateway": "<string>",
"gateway_transaction_id": "<string>",
"id": "<string>",
"metadata": {},
"payment_method": "<string>",
"site_id": "<string>",
"status": "<string>",
"updated_at": "<string>",
"user_id": "<string>",
"webhook_received_at": "<string>"
}Create a new payment intent
curl --request POST \
--url https://api.sprucecollective.co.uk/payments/create \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"amount_cents": 123,
"currency": "<string>",
"payment_method": "<string>",
"description": "<string>",
"metadata": {}
}
'{
"amount_cents": 123,
"created_at": "<string>",
"currency": "<string>",
"description": "<string>",
"fraud_score": 123,
"gateway": "<string>",
"gateway_transaction_id": "<string>",
"id": "<string>",
"metadata": {},
"payment_method": "<string>",
"site_id": "<string>",
"status": "<string>",
"updated_at": "<string>",
"user_id": "<string>",
"webhook_received_at": "<string>"
}Type "Bearer" followed by a space and JWT token.
Payment data