This object represents a line of credit purchase. Purchases can be made on Draw objects only. Purchases of type regular increase
principal balance of a Draw. Some purchase types, such as cashBack
or refund
are actually reduce the principal balance of a Draw.
Each purchase has a unique identifier.
Success
{- "status": 0,
- "count": 0,
- "data": [
- {
- "id": "string",
- "externalId": "string",
- "displayId": "string",
- "drawId": "string",
- "lineOfCreditId": "string",
- "authorizationPurchaseId": "string",
- "type": "regular",
- "status": "authorized",
- "amount": 0,
- "originalAmount": 0,
- "purchaseDate": "2019-08-24",
- "purchaseDetails": {
- "description": "Purchase",
- "pointOfSaleType": "online",
- "categoryId": "string",
- "merchantId": "string",
- "merchantName": "string",
- "metadata": { },
- "isValidMerchantId": true,
- "externalCardId": "string",
- "originalCurrencyAmount": 0,
- "originalCurrencyCode": "string",
- "conversionRate": 0,
- "merchantCity": "string",
- "merchantState": "string",
- "merchantCountry": "string",
- "merchantCategoryCode": "string"
}, - "declineReason": {
- "mainExternalReasonCode": "string",
- "mainText": "string",
- "mainScriptForRep": "string"
}, - "eligibleDisputeAmount": 0,
- "migration": {
- "originalDrawId": "string"
}, - "metadata": { },
- "timestamps": {
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "authorizedAt": "2019-08-24T14:15:22Z",
- "settledAt": "2019-08-24T14:15:22Z",
- "effectiveAt": "2019-08-24T14:15:22Z"
}, - "refundDetails": {
- "refundTransactionId": "string",
- "refundNonDuePrincipalAmount": 0,
- "refundTransactionAmount": 0
}
}
]
}
Get line of credit purchases timeline is designed to provide a sequential ordering of purchases using specific purchase timestamps passed to Peach as part of the query parameters. To generate the timeline, Peach "inserts" purchases using the first available timestamp provided in the query parameters. For example, if effectiveAt
and authorizedAt
are provided in that order, Peach will
effectiveAt
timestamp. If it exists, insert into timeline using effectiveAt
timestamp.effectiveAt
does not exist, check for authorizedAt
. If it exists, insert into timeline using authorizedAt
timestamp.Success
{- "status": 0,
- "count": 0,
- "data": [
- {
- "id": "string",
- "externalId": "string",
- "displayId": "string",
- "drawId": "string",
- "lineOfCreditId": "string",
- "authorizationPurchaseId": "string",
- "type": "regular",
- "status": "authorized",
- "amount": 0,
- "originalAmount": 0,
- "purchaseDate": "2019-08-24",
- "purchaseDetails": {
- "description": "Purchase",
- "pointOfSaleType": "online",
- "categoryId": "string",
- "merchantId": "string",
- "merchantName": "string",
- "metadata": { },
- "isValidMerchantId": true,
- "externalCardId": "string",
- "originalCurrencyAmount": 0,
- "originalCurrencyCode": "string",
- "conversionRate": 0,
- "merchantCity": "string",
- "merchantState": "string",
- "merchantCountry": "string",
- "merchantCategoryCode": "string"
}, - "declineReason": {
- "mainExternalReasonCode": "string",
- "mainText": "string",
- "mainScriptForRep": "string"
}, - "eligibleDisputeAmount": 0,
- "migration": {
- "originalDrawId": "string"
}, - "metadata": { },
- "timestamps": {
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "authorizedAt": "2019-08-24T14:15:22Z",
- "settledAt": "2019-08-24T14:15:22Z",
- "effectiveAt": "2019-08-24T14:15:22Z"
}, - "refundDetails": {
- "refundTransactionId": "string",
- "refundNonDuePrincipalAmount": 0,
- "refundTransactionAmount": 0
}
}
]
}
Created
Request Timeout
{- "externalId": "string",
- "drawId": "string",
- "lineOfCreditId": "string",
- "authorizationPurchaseId": "string",
- "type": "regular",
- "status": "authorized",
- "amount": 0,
- "purchaseDate": "2019-08-24",
- "purchaseDetails": {
- "description": "Purchase",
- "pointOfSaleType": "online",
- "categoryId": "string",
- "merchantId": "string",
- "merchantName": "string",
- "metadata": { },
- "externalCardId": "string",
- "originalCurrencyAmount": 0,
- "originalCurrencyCode": "string",
- "conversionRate": 0,
- "merchantCity": "string",
- "merchantState": "string",
- "merchantCountry": "string",
- "merchantCategoryCode": "string"
}, - "originalPurchaseId": "string",
- "declineReason": {
- "mainExternalReasonCode": "string",
- "mainText": "string",
- "mainScriptForRep": "string"
}, - "migration": {
- "originalDrawId": "string"
}, - "metadata": { },
- "authorizedAt": "2019-08-24T14:15:22Z"
}
{- "status": 0,
- "message": "string",
- "data": {
- "id": "string",
- "externalId": "string",
- "displayId": "string",
- "drawId": "string",
- "lineOfCreditId": "string",
- "authorizationPurchaseId": "string",
- "type": "regular",
- "status": "authorized",
- "amount": 0,
- "originalAmount": 0,
- "purchaseDate": "2019-08-24",
- "purchaseDetails": {
- "description": "Purchase",
- "pointOfSaleType": "online",
- "categoryId": "string",
- "merchantId": "string",
- "merchantName": "string",
- "metadata": { },
- "isValidMerchantId": true,
- "externalCardId": "string",
- "originalCurrencyAmount": 0,
- "originalCurrencyCode": "string",
- "conversionRate": 0,
- "merchantCity": "string",
- "merchantState": "string",
- "merchantCountry": "string",
- "merchantCategoryCode": "string"
}, - "declineReason": {
- "mainExternalReasonCode": "string",
- "mainText": "string",
- "mainScriptForRep": "string"
}, - "eligibleDisputeAmount": 0,
- "migration": {
- "originalDrawId": "string"
}, - "metadata": { },
- "timestamps": {
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "authorizedAt": "2019-08-24T14:15:22Z",
- "settledAt": "2019-08-24T14:15:22Z",
- "effectiveAt": "2019-08-24T14:15:22Z"
}, - "refundDetails": {
- "refundTransactionId": "string",
- "refundNonDuePrincipalAmount": 0,
- "refundTransactionAmount": 0
}
}
}
Purchases
{- "status": 0,
- "message": "string",
- "data": [
- {
- "id": "string",
- "externalId": "string",
- "displayId": "string",
- "drawId": "string",
- "lineOfCreditId": "string",
- "authorizationPurchaseId": "string",
- "type": "regular",
- "status": "authorized",
- "amount": 0,
- "originalAmount": 0,
- "purchaseDate": "2019-08-24",
- "purchaseDetails": {
- "description": "Purchase",
- "pointOfSaleType": "online",
- "categoryId": "string",
- "merchantId": "string",
- "merchantName": "string",
- "metadata": { },
- "isValidMerchantId": true,
- "externalCardId": "string",
- "originalCurrencyAmount": 0,
- "originalCurrencyCode": "string",
- "conversionRate": 0,
- "merchantCity": "string",
- "merchantState": "string",
- "merchantCountry": "string",
- "merchantCategoryCode": "string"
}, - "declineReason": {
- "mainExternalReasonCode": "string",
- "mainText": "string",
- "mainScriptForRep": "string"
}, - "eligibleDisputeAmount": 0,
- "migration": {
- "originalDrawId": "string"
}, - "metadata": { },
- "timestamps": {
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "authorizedAt": "2019-08-24T14:15:22Z",
- "settledAt": "2019-08-24T14:15:22Z",
- "effectiveAt": "2019-08-24T14:15:22Z"
}, - "refundDetails": {
- "refundTransactionId": "string",
- "refundNonDuePrincipalAmount": 0,
- "refundTransactionAmount": 0
}
}
]
}
Get draw purchases timeline is designed to provide a sequential ordering of purchases using specific purchase timestamps passed to Peach as part of the query parameters. To generate the timeline, Peach "inserts" purchases using the first available timestamp provided in the query parameters. For example, if effectiveAt
and authorizedAt
are provided in that order, Peach will
effectiveAt
timestamp. If it exists, insert into timeline using effectiveAt
timestamp.effectiveAt
does not exist, check for authorizedAt
. If it exists, insert into timeline using authorizedAt
timestamp.Purchases
{- "status": 0,
- "message": "string",
- "data": [
- {
- "id": "string",
- "externalId": "string",
- "displayId": "string",
- "drawId": "string",
- "lineOfCreditId": "string",
- "authorizationPurchaseId": "string",
- "type": "regular",
- "status": "authorized",
- "amount": 0,
- "originalAmount": 0,
- "purchaseDate": "2019-08-24",
- "purchaseDetails": {
- "description": "Purchase",
- "pointOfSaleType": "online",
- "categoryId": "string",
- "merchantId": "string",
- "merchantName": "string",
- "metadata": { },
- "isValidMerchantId": true,
- "externalCardId": "string",
- "originalCurrencyAmount": 0,
- "originalCurrencyCode": "string",
- "conversionRate": 0,
- "merchantCity": "string",
- "merchantState": "string",
- "merchantCountry": "string",
- "merchantCategoryCode": "string"
}, - "declineReason": {
- "mainExternalReasonCode": "string",
- "mainText": "string",
- "mainScriptForRep": "string"
}, - "eligibleDisputeAmount": 0,
- "migration": {
- "originalDrawId": "string"
}, - "metadata": { },
- "timestamps": {
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "authorizedAt": "2019-08-24T14:15:22Z",
- "settledAt": "2019-08-24T14:15:22Z",
- "effectiveAt": "2019-08-24T14:15:22Z"
}, - "refundDetails": {
- "refundTransactionId": "string",
- "refundNonDuePrincipalAmount": 0,
- "refundTransactionAmount": 0
}
}
]
}
Success
{- "status": 0,
- "message": "string",
- "data": {
- "id": "string",
- "externalId": "string",
- "displayId": "string",
- "drawId": "string",
- "lineOfCreditId": "string",
- "authorizationPurchaseId": "string",
- "type": "regular",
- "status": "authorized",
- "amount": 0,
- "originalAmount": 0,
- "purchaseDate": "2019-08-24",
- "purchaseDetails": {
- "description": "Purchase",
- "pointOfSaleType": "online",
- "categoryId": "string",
- "merchantId": "string",
- "merchantName": "string",
- "metadata": { },
- "isValidMerchantId": true,
- "externalCardId": "string",
- "originalCurrencyAmount": 0,
- "originalCurrencyCode": "string",
- "conversionRate": 0,
- "merchantCity": "string",
- "merchantState": "string",
- "merchantCountry": "string",
- "merchantCategoryCode": "string"
}, - "declineReason": {
- "mainExternalReasonCode": "string",
- "mainText": "string",
- "mainScriptForRep": "string"
}, - "eligibleDisputeAmount": 0,
- "migration": {
- "originalDrawId": "string"
}, - "metadata": { },
- "timestamps": {
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "authorizedAt": "2019-08-24T14:15:22Z",
- "settledAt": "2019-08-24T14:15:22Z",
- "effectiveAt": "2019-08-24T14:15:22Z"
}, - "refundDetails": {
- "refundTransactionId": "string",
- "refundNonDuePrincipalAmount": 0,
- "refundTransactionAmount": 0
}
}
}
Updated
Request Timeout
Locked
{- "status": "authorized",
- "amount": 0,
- "effectiveAt": "2022-06-10T11:45Z",
- "externalId": "string",
- "originalPurchaseId": "string",
- "authorizationPurchaseId": "string",
- "purchaseDetails": {
- "description": "Purchase",
- "pointOfSaleType": "online",
- "categoryId": "string",
- "merchantId": "string",
- "merchantName": "string",
- "metadata": { },
- "externalCardId": "string",
- "originalCurrencyAmount": 0,
- "originalCurrencyCode": "string",
- "conversionRate": 0,
- "merchantCity": "string",
- "merchantState": "string",
- "merchantCountry": "string",
- "merchantCategoryCode": "string"
}, - "metadata": { },
- "declineReason": {
- "mainExternalReasonCode": "string",
- "mainText": "string",
- "mainScriptForRep": "string"
}, - "refundDetails": {
- "refundTransactionId": "string",
- "refundNonDuePrincipalAmount": 0,
- "refundTransactionAmount": 0
}
}
{- "status": 0,
- "message": "string",
- "data": {
- "id": "string",
- "externalId": "string",
- "displayId": "string",
- "drawId": "string",
- "lineOfCreditId": "string",
- "authorizationPurchaseId": "string",
- "type": "regular",
- "status": "authorized",
- "amount": 0,
- "originalAmount": 0,
- "purchaseDate": "2019-08-24",
- "purchaseDetails": {
- "description": "Purchase",
- "pointOfSaleType": "online",
- "categoryId": "string",
- "merchantId": "string",
- "merchantName": "string",
- "metadata": { },
- "isValidMerchantId": true,
- "externalCardId": "string",
- "originalCurrencyAmount": 0,
- "originalCurrencyCode": "string",
- "conversionRate": 0,
- "merchantCity": "string",
- "merchantState": "string",
- "merchantCountry": "string",
- "merchantCategoryCode": "string"
}, - "declineReason": {
- "mainExternalReasonCode": "string",
- "mainText": "string",
- "mainScriptForRep": "string"
}, - "eligibleDisputeAmount": 0,
- "migration": {
- "originalDrawId": "string"
}, - "metadata": { },
- "timestamps": {
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "authorizedAt": "2019-08-24T14:15:22Z",
- "settledAt": "2019-08-24T14:15:22Z",
- "effectiveAt": "2019-08-24T14:15:22Z"
}, - "refundDetails": {
- "refundTransactionId": "string",
- "refundNonDuePrincipalAmount": 0,
- "refundTransactionAmount": 0
}
}
}
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.
Success
Locked
{- "id": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "deletedAt": "2019-08-24T14:15:22Z",
- "externalId": "string",
- "caseId": "string",
- "status": "unsubmitted",
- "disputedAmount": 0,
- "metadata": { },
- "repostedPurchaseId": "string",
- "createDisputeCase": true
}
{- "status": 0,
- "message": "string",
- "data": {
- "id": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "deletedAt": "2019-08-24T14:15:22Z",
- "externalId": "string",
- "companyId": "string",
- "timestamps": {
- "submittedAt": "2019-08-24T14:15:22Z",
- "expiredAt": "2019-08-24T14:15:22Z",
- "wonAt": "2019-08-24T14:15:22Z",
- "lostAt": "2019-08-24T14:15:22Z"
}, - "caseId": "string",
- "status": "unsubmitted",
- "disputedAmount": 0,
- "metadata": { },
- "repostedPurchaseId": "string"
}
}
Success
{- "status": 0,
- "count": 0,
- "data": [
- {
- "id": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "deletedAt": "2019-08-24T14:15:22Z",
- "externalId": "string",
- "companyId": "string",
- "timestamps": {
- "submittedAt": "2019-08-24T14:15:22Z",
- "expiredAt": "2019-08-24T14:15:22Z",
- "wonAt": "2019-08-24T14:15:22Z",
- "lostAt": "2019-08-24T14:15:22Z"
}, - "caseId": "string",
- "status": "unsubmitted",
- "disputedAmount": 0,
- "metadata": { },
- "repostedPurchaseId": "string"
}
]
}
Success
{- "status": 0,
- "count": 0,
- "data": [
- {
- "id": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "deletedAt": "2019-08-24T14:15:22Z",
- "externalId": "string",
- "companyId": "string",
- "timestamps": {
- "submittedAt": "2019-08-24T14:15:22Z",
- "expiredAt": "2019-08-24T14:15:22Z",
- "wonAt": "2019-08-24T14:15:22Z",
- "lostAt": "2019-08-24T14:15:22Z"
}, - "caseId": "string",
- "status": "unsubmitted",
- "disputedAmount": 0,
- "metadata": { },
- "repostedPurchaseId": "string"
}
]
}
Success
{- "status": 0,
- "count": 0,
- "data": [
- {
- "id": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "deletedAt": "2019-08-24T14:15:22Z",
- "externalId": "string",
- "companyId": "string",
- "timestamps": {
- "submittedAt": "2019-08-24T14:15:22Z",
- "expiredAt": "2019-08-24T14:15:22Z",
- "wonAt": "2019-08-24T14:15:22Z",
- "lostAt": "2019-08-24T14:15:22Z"
}, - "caseId": "string",
- "status": "unsubmitted",
- "disputedAmount": 0,
- "metadata": { },
- "repostedPurchaseId": "string"
}
]
}
Success
{- "status": 0,
- "message": "string",
- "data": {
- "id": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "deletedAt": "2019-08-24T14:15:22Z",
- "externalId": "string",
- "companyId": "string",
- "timestamps": {
- "submittedAt": "2019-08-24T14:15:22Z",
- "expiredAt": "2019-08-24T14:15:22Z",
- "wonAt": "2019-08-24T14:15:22Z",
- "lostAt": "2019-08-24T14:15:22Z"
}, - "caseId": "string",
- "status": "unsubmitted",
- "disputedAmount": 0,
- "metadata": { },
- "repostedPurchaseId": "string"
}
}
Success
Request Timeout
{- "id": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "deletedAt": "2019-08-24T14:15:22Z",
- "externalId": "string",
- "caseId": "string",
- "status": "unsubmitted",
- "disputedAmount": 0,
- "metadata": { },
- "repostedPurchaseId": "string"
}
{- "status": 0,
- "message": "string",
- "data": {
- "id": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "deletedAt": "2019-08-24T14:15:22Z",
- "externalId": "string",
- "companyId": "string",
- "timestamps": {
- "submittedAt": "2019-08-24T14:15:22Z",
- "expiredAt": "2019-08-24T14:15:22Z",
- "wonAt": "2019-08-24T14:15:22Z",
- "lostAt": "2019-08-24T14:15:22Z"
}, - "caseId": "string",
- "status": "unsubmitted",
- "disputedAmount": 0,
- "metadata": { },
- "repostedPurchaseId": "string"
}
}
Request sandbox access