Check Subscription
Last updated
Last updated
GET
https://api.stage.localpayment.com/api/subscriptions/externalID
Get subscription information
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
{
"externalId": "1623540689",
"subscriptionId": "ad5bb089-1095-446f-88ca-3bf2fae3610d",
"status": {
"code": "202",
"description": "COMPLETED",
"detail": "The subscription was completed"
},
"totalPayments": 2,
"pendingPayments": 0,
"creationDate": "2021-06-12T23:31:29.869+00:00",
"nextPaymentDate": "2021-03-14T03:00:00.000+00:00",
"request": {
"payer": {
"name": "Fernando",
"type": "INDIVIDUAL",
"email": "n.cabral@gmail.com",
"phone": {
"number": "98789632",
"areaCode": "11",
"countryCode": "1"
},
"address": {
"city": "Temperley",
"state": "state",
"number": "1234",
"street": "Siempre viva",
"comment": "timbre roto, llamar",
"country": "Argentina",
"zipCode": "1686"
},
"document": {
"id": "37993830",
"type": "DNI"
},
"lastname": "Gomez",
"birthdate": "01/01/1990",
"nationality": "Argentino",
"userReference": "identificador del pagador"
},
"amount": 150.0,
"device": {
"id": "Android 9",
"ip": "127.111.142",
"browser": "Google Chrome"
},
"comment": "Primer pago",
"country": "ARG",
"currency": "ARS",
"metaData": {
"algoDelCliente": "informacion adicional del cliente"
},
"clientCode": "0002",
"externalId": "1623540689",
"beneficiary": {
"name": "Netflix Argentina1",
"type": "COMPANY",
"email": "netflix.argentina@gmail.com",
"phone": {
"number": "98789632",
"areaCode": "11",
"countryCode": "1"
},
"address": {
"city": "Hurlingham",
"state": "state",
"number": "938",
"street": "Charruas",
"comment": "portero 801",
"country": "Argentina",
"zipCode": "1688"
},
"document": {
"id": "30558251405",
"type": "CUIT"
},
"lastname": "Solo si es type INDIVIDUAL",
"merchant": "Netflix001",
"birthdate": "1994-02-20",
"nationality": "Argentino"
},
"conceptCode": "String",
"accountNumber": "032.032.00000001",
"autoRecurring": {
"nextPayment": "2021-01-13",
"repetitions": 2
},
"paymentMethod": {
"code": "1000",
"flow": "DIRECT",
"type": "CreditCard"
},
"commercialData": {
"items": [
{
"id": "PR0001",
"title": "Point Mini",
"quantity": "1",
"unitPrice": 58.8,
"categoryId": "electronics",
"pictureUrl": "https://http2.mlstatic.com/resources/frontend/statics/growth-sellers-landings/device-mlb-point-i_medium@2x.png",
"description": "Producto Point para cobros con tarjetas mediante bluetooth"
}
],
"invoice": "Refencia a una factura",
"shipments": [
{
"city": "Temperley",
"state": "state",
"number": "1234",
"street": "Siempre viva",
"comment": "timbre roto, llamar",
"country": "Argentina",
"zipCode": "1686"
}
]
},
"intermediaries": [
{
"name": "Fernando",
"type": "INDIVIDUAL",
"email": "n.cabral@gmail.com",
"phone": {
"number": "98789632",
"areaCode": "11",
"countryCode": "1"
},
"address": {
"city": "Temperley",
"state": "state",
"number": "1234",
"street": "Siempre viva",
"comment": "timbre roto, llamar",
"country": "Argentina",
"zipCode": "1686"
},
"document": {
"id": "37993830",
"type": "DNI"
},
"lastname": "Gomez",
"birthdate": "01/01/1990",
"nationality": "Argentino"
}
],
"exchangeRateToken": "String"
},
"payments": [
{
"internalId": "9341125e-6f24-4141-adb5-b2e555d58558",
"status": {
"code": "103",
"description": "APPROVED",
"detail": "The payin was confirmed but not credited yet"
}
},
{
"internalId": "887517fe-d052-4634-8d85-f1e632d3357e",
"status": {
"code": "103",
"description": "APPROVED",
"detail": "The payin was confirmed but not credited yet"
}
}
],
"retries": 0
}
{
"status": {
"code": "404",
"description": "ERROR",
"detail": "Subscription not found"
}
}
curl --location --request GET 'https://api.stage.localpayment.com/api/subscriptions/1662558201' \
--header 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNjYyNjUyNTYyLCJqdGkiOiJmZGM3NzMzNWYwNWY0YTg1OTg1NzM0ZTg0NmU3OTg4OSIsInVzZXJfaWQiOjMwLCJzdXBlcnVzZXIiOnRydWUsImlzX3N0YWZmIjpmYWxzZSwicm9sZXMiOlsiQUxMIl0sImNvdW50cmllcyI6WyJBTEwiXSwiY29tcGFueSI6IjAwMDEiLCJjbGllbnRfY29kZSI6IjAwMDEifQ._wpnC6r02XdGRhcEYx-sWEB3dj8OzuuurglgnI2jSJ4'
{
"externalId": "1662558201",
"internalId": "38a16a07-6616-4a90-82b9-0d7c8e2a2b76",
"country": "ARG",
"currency": "ARS",
"accountNumber": "032.032.00000015",
"status": {
"code": "105",
"description": "INPROGRESS"
},
"date": {
"creationDate": "2022-09-07 13:43:52.932",
"nextPaymentDate": "2022-09-09T13:43:52.567Z"
},
"payments": [
{
"externalId": "8708a8ad-806b-4487-a0ce-ea6344d5b347",
"internalId": "ede1a29c-6e68-49ef-a5a7-e6be3a21251b",
"status": {
"code": "103",
"description": "APPROVED",
"detail": "The payin was confirmed but not credited yet"
}
},
{
"externalId": "24f28300-a100-40a6-9344-4d337758d2d5",
"internalId": "9bbd8079-8f48-4977-8cd4-1732c90650dd",
"status": {
"code": "103",
"description": "APPROVED",
"detail": "The payin was confirmed but not credited yet"
}
}
]
}
id*
string
Mandatory. Subscription ID as returned by POST
method
Authorization*
string
Mandatory. Bearer JWT token in format Bearer eyJ0...
. For more information about authentication, please refer to Authentication.