Consultar un checkout embebido
curl --request GET \
--url https://api.cobrix.co/api/integrations/v1/{companyId}/checkouts/{externalDocumentId} \
--header 'Authorization: Bearer <token>' \
--header 'Cobrix-Signature: <cobrix-signature>' \
--header 'Cobrix-Timestamp: <cobrix-timestamp>'const options = {
method: 'GET',
headers: {
'Cobrix-Timestamp': '<cobrix-timestamp>',
'Cobrix-Signature': '<cobrix-signature>',
Authorization: 'Bearer <token>'
}
};
fetch('https://api.cobrix.co/api/integrations/v1/{companyId}/checkouts/{externalDocumentId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.cobrix.co/api/integrations/v1/{companyId}/checkouts/{externalDocumentId}"
headers = {
"Cobrix-Timestamp": "<cobrix-timestamp>",
"Cobrix-Signature": "<cobrix-signature>",
"Authorization": "Bearer <token>"
}
response = requests.get(url, headers=headers)
print(response.text){
"externalDocumentId": "<string>",
"status": "open",
"totalMinor": 123,
"paidMinor": 123,
"currency": "<string>",
"payments": [
{
"amountMinor": 123,
"externalPaymentId": "<string>",
"method": "<string>",
"status": "<string>",
"paidAt": "2023-11-07T05:31:56Z"
}
],
"expiresAt": "2023-11-07T05:31:56Z",
"returnUrl": "<string>"
}{
"error": {
"code": "invalid_api_key",
"message": "The API key is missing or invalid.",
"requestId": "req-1001"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"field": "<string>",
"requestId": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"field": "<string>",
"requestId": "<string>"
}
}{
"error": {
"code": "rate_limited",
"message": "Too many requests for this API key.",
"requestId": "req-1001"
}
}Links de cobro
Consultar un checkout embebido
El estado del cobro por tu externalDocumentId y sus pagos.
GET
/
integrations
/
v1
/
{companyId}
/
checkouts
/
{externalDocumentId}
Consultar un checkout embebido
curl --request GET \
--url https://api.cobrix.co/api/integrations/v1/{companyId}/checkouts/{externalDocumentId} \
--header 'Authorization: Bearer <token>' \
--header 'Cobrix-Signature: <cobrix-signature>' \
--header 'Cobrix-Timestamp: <cobrix-timestamp>'const options = {
method: 'GET',
headers: {
'Cobrix-Timestamp': '<cobrix-timestamp>',
'Cobrix-Signature': '<cobrix-signature>',
Authorization: 'Bearer <token>'
}
};
fetch('https://api.cobrix.co/api/integrations/v1/{companyId}/checkouts/{externalDocumentId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.cobrix.co/api/integrations/v1/{companyId}/checkouts/{externalDocumentId}"
headers = {
"Cobrix-Timestamp": "<cobrix-timestamp>",
"Cobrix-Signature": "<cobrix-signature>",
"Authorization": "Bearer <token>"
}
response = requests.get(url, headers=headers)
print(response.text){
"externalDocumentId": "<string>",
"status": "open",
"totalMinor": 123,
"paidMinor": 123,
"currency": "<string>",
"payments": [
{
"amountMinor": 123,
"externalPaymentId": "<string>",
"method": "<string>",
"status": "<string>",
"paidAt": "2023-11-07T05:31:56Z"
}
],
"expiresAt": "2023-11-07T05:31:56Z",
"returnUrl": "<string>"
}{
"error": {
"code": "invalid_api_key",
"message": "The API key is missing or invalid.",
"requestId": "req-1001"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"field": "<string>",
"requestId": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"field": "<string>",
"requestId": "<string>"
}
}{
"error": {
"code": "rate_limited",
"message": "Too many requests for this API key.",
"requestId": "req-1001"
}
}Headers
Path Parameters
Response
El cobro

