Palbase Payments · API
PUT
/payments/me/profileUpdate customer billing profile
Saves the signed-in customer's billing/shipping profile sealed with the project's data key, and hands it to a provider that keeps a customer record of its own, as UpdateCustomer does. Its ip is not kept: a buyer's address is the one its requests come from. The address the project's server named (UpdateCustomer's ip) stays as it was.
Called by a signed-in user of your app, with their token and the publishable key.
Request body
billing_addressobject · optionalBilling or shipping postal address.emailstring · optionalEmail address.idstring · optionalCustomer identifier.ipstring · optionalBuyer IP address: one IPv4 or IPv6 address, as written — not a forwarded chain (`400 invalid_buyer_ip`). Named by the project's server (secret key) — creating a payment, confirming it, sending its Masterpass code, or keeping a payer's profile — for a buyer there with it, a payment's failures are counted against it — an IPv6 address by its /64, the network a buyer rotates through —, not against the server's own address, and iyzico is told it. A buyer's own client does not name it: what it sends is not used, and the address its request came from is. An address a payment or a profile kept before the server's own were told apart is not used: there is no telling whose it was; a profile kept again names it.namestring · optionalGiven name.phonestring · optionalNormalized E.164 phone number.shipping_addressobject · optionalBilling or shipping postal address.surnamestring · optionalFamily name.tax_idstring · optionalNational identity or tax number.tax_id_typestring · optionalThe kind of tax number `tax_id` is, as Stripe names them (`eu_vat`, `tr_tin`, `us_ein`…). With it the number is kept on the provider's customer and printed on its invoices; without it the number stays in the profile.tax_id_statusstring · optionalRead only: the provider's verification of `tax_id` (Stripe: pending, verified, unverified, unavailable), asked of the provider that keeps a record of the payer as the profile is read or written. Left out with no tax number of a kind, when no provider keeps a record yet, or when the provider could not be asked in time.validate_tax_locationboolean · optionalWrite only (UpdateCustomer): have the providers that keep a record of the payer place the billing address for tax as the profile is written (Stripe Tax's validate_location immediately). One the provider cannot place answers `billing_address_invalid` and the profile is not kept — rather than the first invoice after it being refused. Not kept with the profile; a payer no provider has a record of yet is placed when its record is made.curl
curl -X PUT "https://<your-ref>.palbase.studio/payments/me/profile" \
-H "apikey: $PALBASE_PUBLISHABLE_KEY" \
-H "authorization: Bearer $USER_ACCESS_TOKEN" \
-H "content-type: application/json" \
-d '{"billing_address":{"city":"string","contact_name":"string","country":"string","line1":"string","line2":"string","postal_code":"string","state":"string"},"email":"string","id":"string","ip":"string","name":"string","phone":"string","shipping_address":{"city":"string","contact_name":"string","country":"string","line1":"string","line2":"string","postal_code":"string","state":"string"},"surname":"string","tax_id":"string","tax_id_type":"string","tax_id_status":"string","validate_tax_location":false}'Responses
200OK
defaultStandard Palbase JSON error envelope (`error` and `error_description`).
Operation UpdateMyProfile of payments's contract.