curl --request POST \
--url https://api.stage.localpayment.com/api/payin/subscriptions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"paymentMethod": {
"type": "CreditCard",
"code": "1000",
"flow": "DIRECT"
},
"externalId": "820d6e89-3715-4296-9975-def5c7750f65",
"country": "ARG",
"amount": 100,
"currency": "ARS",
"accountNumber": "{{accountNumber}}",
"conceptCode": "0001",
"comment": "Test",
"merchant": {
"type": "COMPANY",
"name": "Company",
"document": {
"type": "DNI",
"id": "12345678"
},
"userReference": "abc123",
"email": "merchant@mail.com",
"phone": {
"countryCode": "54",
"areaCode": "11",
"number": "98781234"
}
},
"payer": {
"type": "INDIVIDUAL",
"name": "John",
"lastname": "Doe",
"document": {
"id": "37993812",
"type": "DNI"
},
"email": "john.doe@example.com",
"phone": {
"countryCode": "1",
"areaCode": "11",
"number": "98789123"
}
},
"card": {
"name": "APRO",
"number": "4000000000000002",
"cvv": "123",
"expirationMonth": "11",
"expirationYear": "2029",
"installments": 1
},
"type": "SOFTWARE",
"autoRecurring": {
"type": "day"
}
}
'
{
"subscriptionId": "133640f9-ac16-49fc-aa82-08bfe52ceb5e",
"status": {
"code": "105",
"description": "INPROGRESS",
"detail": "The subscription is in progress"
},
"creationDate": "2024-05-31T15:05:47.665+00:00",
"nextPaymentDate": "2024-06-30T15:05:47.665+00:00",
"payments": [
{
"externalId": "bb7d3235-04da-4b8a-85bf-8caf89d986ea",
"internalId": "9977c453-ce00-48fd-baac-f685bce30895",
"status": {
"code": "103",
"description": "APPROVED",
"detail": "The payin was confirmed but not credited yet"
}
}
]
}
Abonnements
Abonnement erstellen
POST
/
api
/
payin
/
subscriptions
curl --request POST \
--url https://api.stage.localpayment.com/api/payin/subscriptions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"paymentMethod": {
"type": "CreditCard",
"code": "1000",
"flow": "DIRECT"
},
"externalId": "820d6e89-3715-4296-9975-def5c7750f65",
"country": "ARG",
"amount": 100,
"currency": "ARS",
"accountNumber": "{{accountNumber}}",
"conceptCode": "0001",
"comment": "Test",
"merchant": {
"type": "COMPANY",
"name": "Company",
"document": {
"type": "DNI",
"id": "12345678"
},
"userReference": "abc123",
"email": "merchant@mail.com",
"phone": {
"countryCode": "54",
"areaCode": "11",
"number": "98781234"
}
},
"payer": {
"type": "INDIVIDUAL",
"name": "John",
"lastname": "Doe",
"document": {
"id": "37993812",
"type": "DNI"
},
"email": "john.doe@example.com",
"phone": {
"countryCode": "1",
"areaCode": "11",
"number": "98789123"
}
},
"card": {
"name": "APRO",
"number": "4000000000000002",
"cvv": "123",
"expirationMonth": "11",
"expirationYear": "2029",
"installments": 1
},
"type": "SOFTWARE",
"autoRecurring": {
"type": "day"
}
}
'
{
"subscriptionId": "133640f9-ac16-49fc-aa82-08bfe52ceb5e",
"status": {
"code": "105",
"description": "INPROGRESS",
"detail": "The subscription is in progress"
},
"creationDate": "2024-05-31T15:05:47.665+00:00",
"nextPaymentDate": "2024-06-30T15:05:47.665+00:00",
"payments": [
{
"externalId": "bb7d3235-04da-4b8a-85bf-8caf89d986ea",
"internalId": "9977c453-ce00-48fd-baac-f685bce30895",
"status": {
"code": "103",
"description": "APPROVED",
"detail": "The payin was confirmed but not credited yet"
}
}
]
}
Mit diesem Endpunkt können Sie ein neues Abonnement für einen Kunden erstellen. Beim Erstellen eines Abonnements wird ein Kunde einem bestimmten Abonnementplan zugeordnet, und seine Zahlungsinformationen werden gespeichert.
Autorisierungen
Header
Bearer-Zugriffstoken zur Authentifizierung. Dieses Token erhalten Sie über die Endpunkte Zugriffstoken abrufen oder Zugriffstoken aktualisieren.
Body
application/json
Land des Dokuments. ISO 3166-1 alpha-3.
Verfügbare Optionen:
COL, MEX, PER Verfügbare Optionen:
COP, MXN, PEN, USD Code für den Zahlungsgrund.
Verfügbare Optionen:
0001, 0002, 0003, 0004, 0005, 0006, 0007, 0008, 0009, 0010, 0011, 0012, 0013, 0014, 0015, 0016, 0017, 0018, 0019, 0020, 0021, 0022, 0023, 0024, 0025, 0026, 0027, 0028, 0029, 0030, 0031, 0032, 0033, 0034, 0035, 0036, 0037, 0038, 0039, 0040 Vom Währungsumtausch-Dienst bereitgestelltes Token, um einen im Voraus vereinbarten Wechselkurs zu verwenden.
Array von Party-Objekten. Es stellt weitere Parteien in der Zahlungskette dar, wenn der Endnutzer nicht Ihr direkter Kunde ist. Beachten Sie die Reihenfolge im Array: Ihr Kunde muss das erste Element sein, der Kunde Ihres Kunden das zweite und so weiter, bis es keine weiteren Zwischenhändler mehr gibt.
Antwort
OK
Zuletzt geändert am 22. November 2026

