Skip to main content

Confirmation

POST/api/v1/customer-payment-confirmation

Confirms an external payment for a case. Records payment details such as amount, date, and status for payments processed outside of CareValidate.

cv-api-key
Productionhttps://api.care360-next.carevalidate.com/api/v1/customer-payment-confirmation
Staginghttps://api-staging.care360-next.carevalidate.com/api/v1/customer-payment-confirmation

Request Body

Body Parameters
caseIdstringrequired

Care Validate system Case ID

Example: abc123-def456-ghi789
emailstringoptional

The email address of the case submitter

Example: user@example.com
phoneNumberstringoptional

The phone number of the case submitter

Example: +1404567890
decisionIdstringoptional

Case Approval Decision ID

Example: dec-123-456
amountnumberrequired

Amount of the payment (e.g. 50)

Example: 50
descriptionstringoptional

Description of the payment (e.g. Payment for Compounded Semaglutide)

Example: Payment for Compounded Semaglutide
paymentDatestringrequired

Payment date in ISO format YYYY-MM-DD (e.g. 2025-01-01)

Example: 2025-01-01
statusstringrequired

Payment status

Example: PAID
Values:PAIDUNPAIDCANCELEDIN_DISPUTELOST_DISPUTEREFUNDERROR
validUntilstringrequired

Payment validity end date in ISO format YYYY-MM-DD (e.g. 2025-02-01)

Example: 2025-02-01
idempotencyKeystringoptional

Optional unique key to prevent duplicate payment confirmation. Scoped per organization.

Request Examples

curl -X POST "https://api.care360-next.carevalidate.com/api/v1/customer-payment-confirmation" \
-H "Content-Type: application/json" \
-H "cv-api-key: YOUR_SECRET_KEY_HERE" \
-d '{
"caseId": "your-case-id",
"decisionId": "your-decision-id",
"amount": 50,
"paymentDate": "2025-01-01",
"validUntil": "2025-02-01",
"status": "PAID",
"description": "Payment for Compounded Semaglutide",
"idempotencyKey": "unique-payment-key-123"
}'

Try It Out

Responses

200SuccessPayment confirmation processed successfully
{
"status": 200,
"success": true
}
409ConflictA record with the provided idempotencyKey already exists for this organization.
{
"status": 409,
"success": false,
"code": "IDEMPOTENCY_ERROR",
"description": "A record with the provided idempotencyKey already exists for this organization."
}