PUT
/
apple-pay-certificates
/
{apple_pay_certificate_id}
curl --request PUT \
  --url https://api.{gr4vy_id}.gr4vy.app/apple-pay-certificates/{apple_pay_certificate_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form 'file=<string>'
{
  "type": "anti-fraud-service",
  "id": "fe26475d-ec3e-4884-9553-f7356683f7f9",
  "merchant_account_id": "default",
  "anti_fraud_service_definition_id": "sift-anti-fraud",
  "display_name": "Sift Anti-Fraud Service.",
  "active": true,
  "reviews_enabled": true,
  "fields": [
    {
      "key": "approve_decision",
      "value": "sk_test_26PHem9AhJZvU623DfE1x4sd"
    }
  ],
  "created_at": "2013-07-16T19:23:00.000+00:00",
  "updated_at": "2013-07-16T19:23:00.000+00:00"
}

This endpoint requires the apple-pay-certificates.write scope.

Authorizations

Authorization
string
headerrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

apple_pay_certificate_id
string
required

The unique ID for an Apple Pay certificate record.

Body

multipart/form-data
file
string

The payment processing certificate received from Apple. This file should be associated with the Certificate Signing Request of this record, have a valid expiration date, and be DER encoded.

Response

200 - application/json
type
enum<string>

The type of this resource. Is always anti-fraud-service.

Available options:
anti-fraud-service
id
string

The unique Gr4vy ID for this anti-fraud service.

merchant_account_id
string

The unique ID for a merchant account.

anti_fraud_service_definition_id
enum<string>

The name of the Anti-Fraud service provider. During update request, this value is used for validation only but the underlying service can not be changed for an existing service.

Available options:
cybersource-anti-fraud,
forter-anti-fraud,
sift-anti-fraud
display_name
string | null

A unique name for this anti-fraud service which is used in the Gr4vy admin panel to give a anti-fraud service a human readable name.

active
boolean
default: true

Defines if this service is currently active or not.

reviews_enabled
boolean
default: false

Defines if this service needs to handle the review status with a proper review workflow. If not, the review status will be treated as any other one.

fields
object[]

A list of fields, each containing a key-value pair for anti-fraud service decision mapping e.g. for Sift approve_decision will be in the response.

created_at
string

The date and time when this anti-fraud service was created in our system.

updated_at
string

The date and time when this anti-fraud service was last updated in our system.