- Create purchase dispute
Creates a new purchase dispute. Purchases in authorized status may not be disputed. They must first be written to the ledger by changing the status of the purchase or creating a new purchase object in pending or settled status. Once one of those steps have been taken, the purchase may be disputed.
A lender's identifier for an object.
After the object is successfully created, a lender can use ID or externalId identifiers to fetch the object.
To fetch the object using externalId you need to add ext- to the URL.
Note: Don't add ext- to the identifier value. For example: if the external identifier is ABCDE, then pass externalId=ABCDE and NOT ext-ABCDE when creating the object.
Peach identifier of the case. The case object contains more details about the dispute, e.g. evidence information such as supporting documents.
The disputed amount. Can be less than the original purchase amount. Sum of disputed amounts cannot exceed the original purchase amounts (regardless of disputes outcomes).
The identifier of the reposted purchase. When a borrower loses a dispute, the lender normally creates a new purchase in the amount of the dispute.
The status of the dispute. unsubmitted is the only valid status for a new purchase dispute.
unsubmitted - The dispute is pending submission to a processor/network.
submitted - The dispute has been submitted to a processor/network.
expired - The dispute has expired.
won - The dispute is won.
lost - The dispute is lost.
canceled - The dispute was canceled. Only unsubmitted disputes can be canceled.
- oauth2
- bearerAuth
- apiKeyHeader
curl -i -X POST \
'https://sandboxapi.peach.finance/api/people/{personId}/loans/{loanId}/draws/{drawId}/purchases/{purchaseId}/disputes' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"externalId": "string",
"caseId": "string",
"disputedAmount": 0.1,
"metadata": {},
"repostedPurchaseId": "string",
"status": "unsubmitted",
"createDisputeCase": true
}'{ "message": "string", "status": 0, "data": { "createdAt": "2019-08-24T14:15:22Z", "deletedAt": "2019-08-24T14:15:22Z", "id": "string", "updatedAt": "2019-08-24T14:15:22Z", "externalId": "string", "cardId": "string", "caseId": "string", "companyId": "string", "disputedAmount": 0.1, "metadata": {}, "repostedPurchaseId": "string", "status": "unsubmitted", "timestamps": { … } } }