Create a customer password reset

POST https://{{subdomain}}.commercelayer.io/api/customer_password_resets

Request Body

{"data"=>{"type"=>"customer_password_resets", "attributes"=>{"customer_email"=>"{{customer_password_reset_customer_email}}"}}}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Authorizationstring

RESPONSES

status: Created

{"data":{"id":"xYZkjABcde","type":"customer_password_resets","links":{"self":"https://yourdomain.commercelayer.io/api/customer_password_resets/xYZkjABcde"},"attributes":{"customer_email":"john@example.com","reset_password_token":"xhFfkmfybsLxzaAP6xcs","reset_password_at":"2018-01-01T12:00:00.000Z","created_at":"2018-01-01T12:00:00.000Z","updated_at":"2018-01-01T12:00:00.000Z","reference":"ANY-EXTERNAL-REFEFERNCE","reference_origin":"ANY-EXTERNAL-REFEFERNCE-ORIGIN","metadata":{"foo":"bar"}},"relationships":{"customer":{"links":{"self":"https://yourdomain.commercelayer.io/api/customer_password_resets/xYZkjABcde/relationships/customer","related":"https://yourdomain.commercelayer.io/api/customer_password_resets/xYZkjABcde/customer"}},"events":{"links":{"self":"https://yourdomain.commercelayer.io/api/customer_password_resets/xYZkjABcde/relationships/events","related":"https://yourdomain.commercelayer.io/api/customer_password_resets/xYZkjABcde/events"}}},"meta":{"mode":"test"}}}