# Purchase

- [JSON representation](https://developers.google.com/mobile-data-plan/reference/rest/v1/Purchase#SCHEMA_REPRESENTATION)

Purchase message capturing the plan that was purchased including details of the transaction.

| JSON representation ||
|---|---|
| ``` { "planId": string, "transactionId": string, "transactionMessage": string, "confirmationCode": string, "planActivationTime": string } ``` |

| Fields ||
|---|---|
| `planId` | `string` ID of the plan purchased. |
| `transactionId` | `string` Transaction ID from the purchase request. |
| `transactionMessage` | `string` Message to be shown to the user after the transaction. |
| `confirmationCode` | `string` DPA generated confirmation code for successful transaction. Required for Google Assistant integration. |
| `planActivationTime` | ``string (`https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.Timestamp` format)`` Plan activation time. If planActivationTime is missing then GTAF shall assume that the plan has already been activated. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: `"2014-10-02T15:01:23Z"` and `"2014-10-02T15:01:23.045123456Z"`. |