---
title: Payload Data Structure
url: amazon-pay-registration/payload.html
---

There are two payload structures, encrypted and plain text. Both are JSON objects, and examples are
shown below.

<ul>
	<li>
		<strong>Encrypted</strong>: For information on how to process this payload, see the <a href="decryption.html">How to decrypt credentials</a>
		section.
		<pre><code>
{
	"encryptedKey": "&lt;encrypted-data&gt;",
	"encryptedPayload":"&lt;encrypted-data&gt;",
	"iv":"&lt;value&gt;",
	"sigKeyID":"&lt;value&gt;",
	"signature":"&lt;encrypted-data&gt;"
}
		</code></pre>
	</li>
	<li>
		<strong>Plain text</strong>: For information on how to process this payload, see the <a href="plaintext.html">How to process plain text
		credentials</a> section.
		<pre><code>
{
	"merchant_id":"YOUR_MERCHANT_ID",
	"access_key":"YOUR_ACCESS_KEY",
	"secret_key":"YOUR_SECRET_KEY",
	"client_id":"YOUR_CLIENT_ID",
	"client_secret":"YOUR_CLIENT_SECRET"
}
		</code></pre>
	</li>
</ul>