{
"AuthorId": "user_m_01J9KR16BG7EDC8RNEY2M18EXK",
"CreditedWalletId": "wlt_m_01J9KR4A7BH8KVE4PG6DTNS817",
"FirstTransactionDebitedFunds": {
"Currency": "EUR",
"Amount": 10000
},
"FirstTransactionFees": {
"Currency": "EUR",
"Amount": 1000
},
"Billing": {
"FirstName": "Ofelia",
"LastName": "Kilback",
"Address": {
"AddressLine1": "8151 Sipes Turnpike",
"AddressLine2": "Garfield Meadows",
"City": "Paris",
"Region": "Île-de-France",
"PostalCode": "75001",
"Country": "FR"
}
},
"Shipping": {
"FirstName": "Alex",
"LastName": "Smith",
"Address": {
"AddressLine1": "6 rue de la Cité",
"AddressLine2": "Appartement 3",
"City": "Paris",
"Region": "île-de-france",
"PostalCode": "75003",
"Country": "FR"
}
},
"PaymentType": "PAYPAL"
}
{
"Id": "recpayinreg_wt_c1fb7e3f-8204-4427-9251-df886fbb4e42",
"Status": "CREATED",
"ResultCode": null,
"ResultMessage": null,
"CurrentState": {
"PayinsLinked": 0,
"CumulatedDebitedAmount": {
"Currency": "EUR",
"Amount": 0
},
"CumulatedFeesAmount": {
"Currency": "EUR",
"Amount": 0
},
"LastPayinId": null
},
"RecurringType": "CUSTOM",
"TotalAmount": null,
"CycleNumber": null,
"AuthorId": "user_m_01J9KR16BG7EDC8RNEY2M18EXK",
"CardId": null,
"CreditedUserId": null,
"CreditedWalletId": "wlt_m_01J9KR4A7BH8KVE4PG6DTNS817",
"Billing": {
"FirstName": "Ofelia",
"LastName": "Kilback",
"Address": {
"AddressLine1": "8151 Sipes Turnpike",
"AddressLine2": "Garfield Meadows",
"City": "Paris",
"Region": "Île-de-France",
"PostalCode": "75001",
"Country": "FR"
}
},
"Shipping": {
"FirstName": "Alex",
"LastName": "Smith",
"Address": {
"AddressLine1": "6 rue de la Cité",
"AddressLine2": "Appartement 3",
"City": "Paris",
"Region": "île-de-france",
"PostalCode": "75003",
"Country": "FR"
}
},
"EndDate": null,
"Frequency": null,
"FixedNextAmount": false,
"FractionedPayment": false,
"FreeCycles": 0,
"FirstTransactionDebitedFunds": {
"Currency": "EUR",
"Amount": 10000
},
"FirstTransactionFees": {
"Currency": "EUR",
"Amount": 1000
},
"NextTransactionDebitedFunds": null,
"NextTransactionFees": null,
"Migration": false,
"PaymentType": "PAYPAL"
}
Recurring payments
Create a Recurring PayIn Registration (PayPal)
POST
/
v2.01
/
{ClientId}
/
recurringpayinregistrations
{
"AuthorId": "user_m_01J9KR16BG7EDC8RNEY2M18EXK",
"CreditedWalletId": "wlt_m_01J9KR4A7BH8KVE4PG6DTNS817",
"FirstTransactionDebitedFunds": {
"Currency": "EUR",
"Amount": 10000
},
"FirstTransactionFees": {
"Currency": "EUR",
"Amount": 1000
},
"Billing": {
"FirstName": "Ofelia",
"LastName": "Kilback",
"Address": {
"AddressLine1": "8151 Sipes Turnpike",
"AddressLine2": "Garfield Meadows",
"City": "Paris",
"Region": "Île-de-France",
"PostalCode": "75001",
"Country": "FR"
}
},
"Shipping": {
"FirstName": "Alex",
"LastName": "Smith",
"Address": {
"AddressLine1": "6 rue de la Cité",
"AddressLine2": "Appartement 3",
"City": "Paris",
"Region": "île-de-france",
"PostalCode": "75003",
"Country": "FR"
}
},
"PaymentType": "PAYPAL"
}
{
"Id": "recpayinreg_wt_c1fb7e3f-8204-4427-9251-df886fbb4e42",
"Status": "CREATED",
"ResultCode": null,
"ResultMessage": null,
"CurrentState": {
"PayinsLinked": 0,
"CumulatedDebitedAmount": {
"Currency": "EUR",
"Amount": 0
},
"CumulatedFeesAmount": {
"Currency": "EUR",
"Amount": 0
},
"LastPayinId": null
},
"RecurringType": "CUSTOM",
"TotalAmount": null,
"CycleNumber": null,
"AuthorId": "user_m_01J9KR16BG7EDC8RNEY2M18EXK",
"CardId": null,
"CreditedUserId": null,
"CreditedWalletId": "wlt_m_01J9KR4A7BH8KVE4PG6DTNS817",
"Billing": {
"FirstName": "Ofelia",
"LastName": "Kilback",
"Address": {
"AddressLine1": "8151 Sipes Turnpike",
"AddressLine2": "Garfield Meadows",
"City": "Paris",
"Region": "Île-de-France",
"PostalCode": "75001",
"Country": "FR"
}
},
"Shipping": {
"FirstName": "Alex",
"LastName": "Smith",
"Address": {
"AddressLine1": "6 rue de la Cité",
"AddressLine2": "Appartement 3",
"City": "Paris",
"Region": "île-de-france",
"PostalCode": "75003",
"Country": "FR"
}
},
"EndDate": null,
"Frequency": null,
"FixedNextAmount": false,
"FractionedPayment": false,
"FreeCycles": 0,
"FirstTransactionDebitedFunds": {
"Currency": "EUR",
"Amount": 10000
},
"FirstTransactionFees": {
"Currency": "EUR",
"Amount": 1000
},
"NextTransactionDebitedFunds": null,
"NextTransactionFees": null,
"Migration": false,
"PaymentType": "PAYPAL"
}
Note – Only one registration per user on PayPalOn PayPal, only one recurring pay-in registration can be used per
UserId. You can end a user’s existing registration object to create a new one with the same user.Body parameters
string
required
The unique identifier of the user at the source of the transaction.
string
required
The unique identifier of the credited wallet.
object
required
The amount of the first recurring pay-in.
This value can be different from the
This value can be different from the
NextTransactionDebitedFundsShow properties
Show properties
string
required
Allowed values: The three-letter ISO 4217 code (EUR, GBP, etc.) of a supported currency (depends on feature, contract, and activation settings).The currency of the debited funds.
integer
required
An amount of money in the smallest sub-division of the currency (e.g., EUR 12.60 would be represented as
1260 whereas JPY 12 would be represented as just 12).object
required
The fees of the first recurring pay-in.
This amount can be different from the
This amount can be different from the
NextTransactionDebitedFunds.Show properties
Show properties
string
required
Allowed values: The three-letter ISO 4217 code (EUR, GBP, etc.) of a supported currency (depends on feature, contract, and activation settings).The currency of the fees.
integer
required
An amount of money in the smallest sub-division of the currency (e.g., EUR 12.60 would be represented as
1260 whereas JPY 12 would be represented as just 12).object
Information about the end user’s billing address.
Show properties
Show properties
string
The first name of the user.
string
Max. length: 100 charactersThe last name of the user.
object
Information about the billing address.
Show properties
Show properties
string
required
Max. length: 255 charactersThe first line of the address.
string
Max. length: 255 charactersThe second line of the address.
string
Max. length: 255 charactersThe city of the address.
string
Max. length: 255 charactersRequired if
Country is US, CA, or MX.The region of the address.string
required
Max. length: 255 charactersThe postal code of the address. The postal code can contain the following characters: alphanumeric, dashes, and spaces.
string
required
Format: Two-letter country code (ISO 3166-1 alpha-2 format)The country of the address.
object
Information about the end user’s shipping address.
Show properties
Show properties
string
The first name of the user.
string
Max. length: 100 charactersThe last name of the user.
object
required
Information about the shipping address.
Show properties
Show properties
string
required
Max. length: 255 charactersThe first line of the address.
string
Max. length: 255 charactersThe second line of the address.
string
required
Max. length: 255 charactersThe city of the address.
string
Max. length: 255 charactersRequired if
Country is US, CA, or MX.The region of the address.string
required
Max. length: 255 charactersThe postal code of the address. The postal code can contain the following characters: alphanumeric, dashes, and spaces.
string
required
Format: Two-letter country code (ISO 3166-1 alpha-2 format)The country of the address.
boolean
For PayPal recurring registrations, this value is ignored if sent and automatically returned
false. However, you can specify NextTransactionDebitedFunds and NextTransactionFees to set up a fixed-amount recurrence.object
The amount of the subsequent recurring pay-ins.
Show properties
Show properties
string
required
Allowed values: The three-letter ISO 4217 code (EUR, GBP, etc.) of a supported currency (depends on feature, contract, and activation settings).The currency of the debited funds.
integer
required
An amount of money in the smallest sub-division of the currency (e.g., EUR 12.60 would be represented as
1260 whereas JPY 12 would be represented as just 12).object
The fees of the subsequent recurring pay-ins.
Show properties
Show properties
string
required
Allowed values: The three-letter ISO 4217 code (EUR, GBP, etc.) of a supported currency (depends on feature, contract, and activation settings).The currency of the fees.
integer
An amount of money in the smallest sub-division of the currency (e.g., EUR 12.60 would be represented as
1260 whereas JPY 12 would be represented as just 12).string
Allowed values:
CARD_DIRECT, PAYPALDefault value: CARD_DIRECTThe type of recurring pay-in registration (which must correspond to the pay-ins requested against it).Note: Multiple active CARD_DIRECT registrations can exist for a user, but only one PAYPAL registration.string
The unique reference generated for the profiling session, used by the fraud prevention solution to produce recommendations for the transaction using the profiling data.Note: Parameter not returned by the API. Profiling feature available on request – contact Mangopay via the Dashboard for more information.
Responses
200
200
string
Max length: 128 characters (see data formats for details)The unique identifier of the object.
string
Returned values:
CREATED, AUTHENTICATION_NEEDED, IN_PROGRESS, ENDEDThe status of the recurring registration for PayPal:CREATED– The recurring registration was created, but no recurring pay-in has yet been made.AUTHENTICATION_NEEDED– A customer-initiated transaction (CIT) has been initiated against the registration but not authenticated. Note that there is no re-authentication process with PayPal: this status is only returned after the CIT is initiated but not yet successful.IN_PROGRESS– The CIT has was successful and subsequent merchant-initiated transactions (MIT) can be requested.ENDED– The registration can no longer be modified nor reused. A new one can be created for the same user.
string
The code indicating the result of the operation. This information is mostly used to handle errors or for filtering purposes.
string
The explanation of the result code.
object
Information about the recurring pay-ins related to the registration object.Note: If the
LastPayinId references a transaction older than 13 months, it may have been archived.Show properties
Show properties
integer
The number of recurring pay-ins already made for the registration object.
object
The sum of the
DebitedFunds amounts of the recurring pay-ins made for the registration.Show properties
Show properties
string
Returned values: The three-letter ISO 4217 code (EUR, GBP, etc.) of a supported currency (depends on feature, contract, and activation settings).The currency of the debited funds.
integer
An amount of money in the smallest sub-division of the currency (e.g., EUR 12.60 would be represented as
1260 whereas JPY 12 would be represented as just 12).object
The sum of the
Fees amounts of the recurring pay-ins made for the registration.Show properties
Show properties
string
Returned values: The three-letter ISO 4217 code (EUR, GBP, etc.) of a supported currency (depends on feature, contract, and activation settings).The currency of the fees.
integer
An amount of money in the smallest sub-division of the currency (e.g., EUR 12.60 would be represented as
1260 whereas JPY 12 would be represented as just 12).string
The unique identifier of the last recurring pay-in made for the registration.
string
Returned values:
CUSTOMFor PayPal recurring registrations, this value is always CUSTOM.object
For PayPal recurring registrations, this value is returned
null.integer
For PayPal recurring registrations, this value is returned
null.string
The unique identifier of the user at the source of the transaction.
string
For PayPal recurring registrations, this value is returned
null.string
Default value: The unique identifier of the owner of the credited wallet.The unique identifier of the user whose wallet is credited.
string
The unique identifier of the credited wallet.
object
Default value: FirstName, LastName, and Address information of the Shipping object if any, otherwise the user (author).Information about the end user billing address. If left empty, the default values will be automatically taken into account.
Show properties
Show properties
string
The first name of the user.
string
Max. length: 100 charactersThe last name of the user.
object
Information about the billing address.
Show properties
Show properties
string
Max. length: 255 charactersThe first line of the address.
string
Max. length: 255 charactersThe second line of the address.
string
Max. length: 255 charactersThe city of the address.
string
Max. length: 255 charactersThe region of the address. This field is optional except if the
Country is US, CA, or MX.string
Max. length: 255 charactersThe postal code of the address. The postal code can contain the following characters: alphanumeric, dashes, and spaces.
string
Format: Two-letter country code (ISO 3166-1 alpha-2 format)The country of the address.
object
Information about the end user’s shipping address.
Show properties
Show properties
string
The first name of the user.
string
Max. length: 100 charactersThe last name of the user.
object
Information about the shipping address.
Show properties
Show properties
string
Max. length: 255 charactersThe first line of the address.
string
Max. length: 255 charactersThe second line of the address.
string
Max. length: 255 charactersThe city of the address.
string
Max. length: 255 charactersThe region of the address. This field is optional except if the
Country is US, CA, or MX.string
Max. length: 255 charactersThe postal code of the address. The postal code can contain the following characters: alphanumeric, dashes, and spaces.
string
Format: Two-letter country code (ISO 3166-1 alpha-2 format)The country of the address.
Unix timestamp
For PayPal recurring registrations, this value is returned
null.string
For PayPal recurring registrations, this value is returned
null.boolean
For PayPal recurring registrations, this value is ignored if sent and automatically returned
false. However, you can specify NextTransactionDebitedFunds and NextTransactionFees to set up a fixed-amount recurrence.boolean
For PayPal recurring registrations, this value is returned
null.integer
For PayPal recurring registrations, this value is returned
0.object
The amount of the first recurring pay-in.
This value can be different from the
This value can be different from the
NextTransactionDebitedFundsShow properties
Show properties
string
Returned values: The three-letter ISO 4217 code (EUR, GBP, etc.) of a supported currency (depends on feature, contract, and activation settings).The currency of the debited funds.
integer
An amount of money in the smallest sub-division of the currency (e.g., EUR 12.60 would be represented as
1260 whereas JPY 12 would be represented as just 12).object
The fees of the first recurring pay-in.
This amount can be different from the
This amount can be different from the
NextTransactionDebitedFunds.Show properties
Show properties
string
Returned values: The three-letter ISO 4217 code (EUR, GBP, etc.) of a supported currency (depends on feature, contract, and activation settings).The currency of the fees.
integer
An amount of money in the smallest sub-division of the currency (e.g., EUR 12.60 would be represented as
1260 whereas JPY 12 would be represented as just 12).object
The amount of the subsequent recurring pay-ins.
Show properties
Show properties
string
Returned values: The three-letter ISO 4217 code (EUR, GBP, etc.) of a supported currency (depends on feature, contract, and activation settings).The currency of the debited funds.
integer
An amount of money in the smallest sub-division of the currency (e.g., EUR 12.60 would be represented as
1260 whereas JPY 12 would be represented as just 12).object
The fees of the subsequent recurring pay-ins.
Show properties
Show properties
string
Returned values: The three-letter ISO 4217 code (EUR, GBP, etc.) of a supported currency (depends on feature, contract, and activation settings).The currency of the fees.
integer
An amount of money in the smallest sub-division of the currency (e.g., EUR 12.60 would be represented as
1260 whereas JPY 12 would be represented as just 12).boolean
deprecated
For PayPal recurring registrations, this value is returned
false.string
Returned values:
CARD_DIRECT, PAYPALDefault value: CARD_DIRECTThe type of recurring pay-in registration (which must correspond to the pay-ins requested against it).400 - One live PayPal registration allowed per user
400 - One live PayPal registration allowed per user
{
"Message": "One or several required parameters are missing or incorrect. An incorrect resource ID also raises this kind of error.",
"Type": "param_error",
"Id": "be73db6f-f78e-4e71-9602-11633626dc9a",
"Date": 1731941788,
"errors": {
"AuthorId": "RecurringPayInRegistration already exists for given AuthorId=user_m_01JCQYRAFZQMN5TD4X5Z3JFZT0 and PaymentType=PAYPAL"
}
}
{
"Id": "recpayinreg_wt_c1fb7e3f-8204-4427-9251-df886fbb4e42",
"Status": "CREATED",
"ResultCode": null,
"ResultMessage": null,
"CurrentState": {
"PayinsLinked": 0,
"CumulatedDebitedAmount": {
"Currency": "EUR",
"Amount": 0
},
"CumulatedFeesAmount": {
"Currency": "EUR",
"Amount": 0
},
"LastPayinId": null
},
"RecurringType": "CUSTOM",
"TotalAmount": null,
"CycleNumber": null,
"AuthorId": "user_m_01J9KR16BG7EDC8RNEY2M18EXK",
"CardId": null,
"CreditedUserId": null,
"CreditedWalletId": "wlt_m_01J9KR4A7BH8KVE4PG6DTNS817",
"Billing": {
"FirstName": "Ofelia",
"LastName": "Kilback",
"Address": {
"AddressLine1": "8151 Sipes Turnpike",
"AddressLine2": "Garfield Meadows",
"City": "Paris",
"Region": "Île-de-France",
"PostalCode": "75001",
"Country": "FR"
}
},
"Shipping": {
"FirstName": "Alex",
"LastName": "Smith",
"Address": {
"AddressLine1": "6 rue de la Cité",
"AddressLine2": "Appartement 3",
"City": "Paris",
"Region": "île-de-france",
"PostalCode": "75003",
"Country": "FR"
}
},
"EndDate": null,
"Frequency": null,
"FixedNextAmount": false,
"FractionedPayment": false,
"FreeCycles": 0,
"FirstTransactionDebitedFunds": {
"Currency": "EUR",
"Amount": 10000
},
"FirstTransactionFees": {
"Currency": "EUR",
"Amount": 1000
},
"NextTransactionDebitedFunds": null,
"NextTransactionFees": null,
"Migration": false,
"PaymentType": "PAYPAL"
}
{
"AuthorId": "user_m_01J9KR16BG7EDC8RNEY2M18EXK",
"CreditedWalletId": "wlt_m_01J9KR4A7BH8KVE4PG6DTNS817",
"FirstTransactionDebitedFunds": {
"Currency": "EUR",
"Amount": 10000
},
"FirstTransactionFees": {
"Currency": "EUR",
"Amount": 1000
},
"Billing": {
"FirstName": "Ofelia",
"LastName": "Kilback",
"Address": {
"AddressLine1": "8151 Sipes Turnpike",
"AddressLine2": "Garfield Meadows",
"City": "Paris",
"Region": "Île-de-France",
"PostalCode": "75001",
"Country": "FR"
}
},
"Shipping": {
"FirstName": "Alex",
"LastName": "Smith",
"Address": {
"AddressLine1": "6 rue de la Cité",
"AddressLine2": "Appartement 3",
"City": "Paris",
"Region": "île-de-france",
"PostalCode": "75003",
"Country": "FR"
}
},
"PaymentType": "PAYPAL"
}
Was this page helpful?